FCM Notification with app in background, the notification payload intent is not passed to the Activity

1,216 views
Skip to first unread message

Wilson Xie

unread,
Jan 23, 2017, 3:09:16 AM1/23/17
to Firebase Google Group
Android app is running in the background state. Created a notification message in the Firebase Console with payload in the Advanced options. After receiving the notification and shown on the device's system tray, clicking on the notification just goes back to the app and the data payload was not delivered in the extras on the intent of the launcher activity. The notification does not open the app launcher by default as specified in the documentations. Why is it that the notification in the device's system tray is launching the Activity, but sometimes it just goes to the app as it was clicking on the app icon normally? The payload intent never got passed to the activity that is trying to read it, getIntent().getExtras() returns null.

Kato Richardson

unread,
Jan 24, 2017, 11:52:49 AM1/24/17
to Firebase Google Group
Hi Wilson,

This would probably be more appropriate for Stack Overflow, as you'll likely need to include an [creating an mcve](http://stackoverflow.com/help/mcve) for us to be any help troubleshooting. My initial guess would be that the payload is not being sent in the notification correctly, or perhaps not at all.

☼, Kato

On Sun, Jan 22, 2017 at 5:43 PM, Wilson Xie <wil...@dezapp.com> wrote:
Android app is running in the background state. Created a notification message in the Firebase Console with payload in the Advanced options. After receiving the notification and shown on the device's system tray, clicking on the notification just goes back to the app and the data payload was not delivered in the extras on the intent of the launcher activity. The notification does not open the app launcher by default as specified in the documentations. Why is it that the notification in the device's system tray is launching the Activity, but sometimes it just goes to the app as it was clicking on the app icon normally? The payload intent never got passed to the activity that is trying to read it, getIntent().getExtras() returns null.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/ebc7a2c0-8839-4847-af07-411c623d133e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages