I have a problem regarding the click action of the FCM Push notification when an app is on background. When I try to send a notification from the firebase console, the information is received and if I click the notification, the apps open. But when I try to send a notification via Postman. the notification is also received but when I click it, the app doesn't open.
Payload:
{
"to": "--mytoken--",
"notification": {
"click_action": "home",
"title": "Title Notification",
"body": "Body Notification"
},
"data": {
"body": "Body of Your Notification in Data",
"title": "Title of Your Notification in Title",
"type": "edit_profile",
"id_reference": "0",
"badger": "1",
"inbox_subject": "",
"news_title": "YYY",
"url": "https://yamie2.co.id/news/webview/3",
"icon": "https://yamie.co.id/images/icon.png"
}
}
I create an android app with ReactJS and Capacitor