onRegister is never called (on device)
See original GitHub issueI’ve spent countless hours trying to debug this, and although PushNotification.configure({..})
is called, the onRegister
callback never fires — I’ve set requestPermissions
to true
, and even tried calling it manually; it still never fires. Currently I’m running it on an ASUS Zenfone Android 7.0 device, but just cant seem to get the token
Issue Analytics
- State:
- Created 6 years ago
- Reactions:15
- Comments:33 (1 by maintainers)
Top Results From Across the Web
React Native onRegister event not working (iOS)
This function never gets called. It doesn't matter if I have requestPermissions:true or not PushNotification.configure({ onRegister: ...
Read more >react-native-push-notification Code Examples - Snyk
receivedNotification, // ANDROID ONLY: GCM Sender ID (optional - not required ... (optional) Called when Token is generated (iOS and Android) onRegister: ...
Read more >Push Notifications - Optimizely
How to configure push notifications to your mobile device for an Optimizely Data Platform (ODP) campaign. ... onRegister callback will not be called...
Read more >Step by Step guide for Implementing Push Notifications in iOS ...
However, that's not always true. ... “onRegister” is the event that gets called upon the device's successful registration to the firebase ...
Read more >Push Notification with Amplify | Sumerian school
If you are not working on a project, then the first step is creating one by the ... Android package name can be...
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
@Amnesthesia To test, I found using
PushNotificationIOS.addEventListener('registrationError', console.log)
EXTREMELY useful, it showed me the exact reason of why it was failing.This fixed it for me – I had to go into XCode > Project > Capabilities and turn on Push Notifications. Then the onRegister() callback started firing.