Closed kd4g closed 2 years ago
I am having the same problem right now. Any solutions or workarounds?
+1
Same on IOS device
Has anyone manage to resolve this issue yet? or have a workaround?
Hmm, how to fix it :(
I am having the same issue.
Notifications.events().registerRemoteNotificationsRegistered( (event) => {
// Code execution never reaches this point
console.log("registerRemoteNotificationsRegistered - deviceToken:", event.deviceToken, );
});
react-native: 0.68.2
react-native-notifications: 4.3.1
Same issue here, any progress??
In case it's helpful to anyone else, updating settings related to Google FCM fixed this issue for me. I was clued in by this comment and re-downloaded the google-services.json
file. I also updated some of the gradle code based on what's in the docs. After updating all of that info, the token started magically appearing and the function body was now accessible.
My guess is the callback isn't run unless a valid token is present, which may not be returned if Google FCM isn't set up correctly.
"react-native": "0.67.4",
"react-native-notifications": "^4.2.4",
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.
I'm getting stuck on this issue too.
"react-native": "0.69.7",
"react-native-notifications": "4.3.5"
I am using the following versions and followed all the steps outlined in https://wix.github.io/react-native-notifications/docs/installation-android
react-native-notifications": "^4.2.4" "react-native": "0.68.0",
registerRemoteNotificationsRegistered callback is not getting called after Notifications.registerRemoteNotifications(). So I am unable to get device token.
Here is the code snippet:
I ensured all changes are done to build.grade, gradle.settings as outlined in the document.
Any details about why callback is not called will be helpful.
Thanks!