android - Get Data From Notification via Intent When App Not Running
Clash Royale CLAN TAG #URR8PPP android - Get Data From Notification via Intent When App Not Running I have an app using Firebase Notification and when the notification coming i want to open the application and get data from it. Now i'm using getLaunchIntent() to open app but it's only open when app is in backstack/running in background. If the app is not running, it doesn't open the app. The problem listed here: I want to open app and get data from intent despite the app is in foreground/background/not running. The method getLaunchIntent() didn't pass any data if i want to open current app, it only pass data when i open other application. Any help is appreciated, thanks for help! 1 Answer 1 If you want to get the payload, you should use data {"string":"val"} and define a click_action to get the data in your activity. data {"string":"val"} cli...