Firebase Cloud Messaging (FCM) - Launch Activity when user clicks the notification with extras
I'm trying to open a specific activity when the user clicks the notification, when the app is in the background, with some extra parameters. I'm using the click_action and it's working fine, the app opens the desired Activity. Now I need the server to pass an extra parameter, an id , to this Activity so I can present the desired details associated with the notification. Like an e-mail application, that when we click on the notification opens the details of that specif email. How can I do this? Ok, I have found the solution. This is the json that I'm sending from the server to the app {