question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

after update to 4.3.3 can't receive any push notification in DefaultBroadcastReceiver

See original GitHub issue

after update to 4.3.3 can’t receive any push notification in DefaultBroadcastReceiver

i do my custom DefaultBroadcastReceiver FirebasePushModule.activate(); builder.setInboundPushHandlingEnabled(false); builder.setShowLocalNotifications(true);

<receiver android:name=".push.BroadcastReceiver" android:enabled="true" android:exported="true" android:permission="com.google.android.c2dm.permission.SEND"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <category android:name="com.newline.multe" /> </intent-filter> </receiver>

 <meta-data
        android:name="com.google.firebase.messaging.default_notification_icon"
        android:resource="@drawable/ic_launcher"
        tools:replace="android:resource" />

    <meta-data
        android:name="com.google.firebase.messaging.default_notification_color"
        android:resource="@color/colorAccent"
        tools:replace="android:resource" />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mohammadidiabcommented, Oct 30, 2018

@bensmiley @dogacsenol

thanks but some time don’t receive any notification and in firebase console (functions) have an error

Error: data must only contain string values at FirebaseMessagingError.Error (native) at FirebaseMessagingError.FirebaseError [as constructor] (/user_code/node_modules/firebase-admin/lib/utils/error.js:39:28) at FirebaseMessagingError.PrefixedFirebaseError [as constructor] (/user_code/node_modules/firebase-admin/lib/utils/error.js:85:28) at new FirebaseMessagingError (/user_code/node_modules/firebase-admin/lib/utils/error.js:241:16) at /user_code/node_modules/firebase-admin/lib/messaging/messaging.js:95:19 at Array.forEach (native) at validateStringMap (/user_code/node_modules/firebase-admin/lib/messaging/messaging.js:93:22) at validateMessage (/user_code/node_modules/firebase-admin/lib/messaging/messaging.js:322:5) at Messaging.send (/user_code/node_modules/firebase-admin/lib/messaging/messaging.js:461:9) at getUserIds.then (/user_code/index.js:220:39)

0reactions
bensmileycommented, Nov 2, 2018

Resolved in e6431b5 and 4.3.6. The new push script fixes the bug in the case that a user doesn’t have a name set. Also, going forward, users will be given a name on signup.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android GCM (push notification): device doesn't receive ...
I just tested this using the airbop-client and I can confirm that the onReceive() method was not called after the app was force...
Read more >
NotificationListenerService - Android Developers
A service that receives calls from the system when new notifications are posted or ... Notification was canceled due to an assistant adjustment...
Read more >
Firebase Cloud Messaging for Android: Sending Push ...
Before receiving any push notifications in your app, there's a series of steps you'll need to configure in the Firebase console.
Read more >
Android Push - CleverTap Developer Docs
There are two ways to implement push notifications on a device. Default CleverTap Implementation - This is the easiest way to implement push...
Read more >
Android Step-By-Step - Oracle Help Center
Place the following SDK-specific build rules below the default Android Studio contents ... and sets up users to receive push notifications PushIOManager.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found