We are using FCM to show push notification to the end user . FCM successfully raised the notification and the user is seeing the notification from the system tray.I am using FCM console Notification composer for testing.
I will keep my app in the background and send message from FCM console.
The requirement is to navigate to specific activity in the application when the tray message is clicked by the user(when the application in background). Right now , by default it opens the app launcher page.
I couldn't get proper answer from google . Most of the answers are for GCM and most are not working solution . I don't find proper document in FCM page.
Handle notification messages in a backgrounded app
When your app is in the background, Android directs notification messages to the system tray. A user tap on the notification opens the app launcher by default.
FCM page -
This includes messages that contain both notification and data payload (and all messages sent from the Notifications console). In these cases, the notification is delivered to the device's system tray, and the data payload is delivered in the extras of the intent of your launcher Activity.
Thanks