When I send an alert notification, if the app is either not running or is in the background, the alert terminates in the system tray. Then later the user clicks on this notification and the app is launched. How can I know that the app was launched from a click on a notification alert in the system tray? And how can I retrieve the information regarding this notification? Also, not that I'm using Firebase cloud messaging.
Asked
Active
Viewed 159 times
0
-
You can put a Bundle Extra in the Intent that launches the Starting Activity. If the Intent has this Extra, it means the App was launched from the Notification – MayorJay Dec 07 '22 at 01:12
-
@MayorJay but how to add this Bundle extra? I sent the message from google firebase messaging – zeus Dec 07 '22 at 09:10