So how to pass data from push notification for app when app is not in froreground?
On android I have tried to add data to Intent extras which works well when app is opened from push notification. If user happens to open app from app icon or app switcher intent extras are null. Clearly I need to figure out some other way to pass that data for app in a way it is accessable regardles how user decides to open app. How should I do this?

Yazhini MP128 reputationPosted Dec 6, 2021, 12:10 AM EST
Go to Firebase console →Project Settings →Cloud Messaging. To send the message select Body →Raw →JSON(application/json). You can send Notification Payload , Data Payload and even both using POSTMAN service.
Jyri Turkia36 reputationPosted Dec 7, 2021, 4:17 AM EST
Delpin Susai RajRank #53 · 29.5K reputationPosted Dec 14, 2021, 11:39 PM EST