Notification not cleared and got error while clicking FCM or Remote message
See original GitHub issuereact-native and library version
:
"react": "16.13.1",
"react-native": "0.63.1",
"react-native-push-notification": "^4.0.0",
1. I am having a problem of clearing notification when user click on the notification which was sent from FCM console or Remote FCM message. I tried this
PushNotification.cancelLocalNotifications({ id: this.lastId
});
PushNotification.cancelLocalNotifications({ id: '' + this.lastId });
But none of these worked.
2. When user taps the notification to open application, i am getting error undefined is not an object. Below are the errors
What are the proper way to handle notification, FCM and FCM remote message ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Firebase cloud messaging notification not received by device
I do receive a one-time error immediately after pushing the notification that states "I/FA: Tag Manager is not found and thus will not...
Read more >Receive messages in an Android app - Firebase - Google
Notification messages delivered when your app is in the background. In this case, the notification is delivered to the device's system tray.
Read more >Push Notification Troubleshooting for Android - Braze
This article covers potential troubleshooting topics for your Android push implementation.
Read more >Notifications Not Shown - Mobile Push
When an app is in a Force Stopped / Force Killed state most events including FCM messages for push notifications will not be...
Read more >Troubleshooting Duo Push notification issues on Android ...
If you can approve a request by manually leaving and returning to the app and tapping the Approve button in the Duo Mobile...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vishwa1937 as i explained in the other topic, when the app is open, you get the notification and the data is received through the data{} object, but if the app is closed or minimized! and you click on the notification to open the app but the data doesn’t come from the data{} object, you have to access it directly
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.