React-native-push-notification: onRegister not called (Android)

Created on 31 Dec 2015  路  3Comments  路  Source: zo0r/react-native-push-notification

I took the sample code
onRegister: function(token) { console.log( 'TOKEN:', token ); },
But onRegister is not called on Android
How do I get the device token?

Most helpful comment

Had the same problem, fixed it by entering the App ID in the senderID field. See here to obtain a senderID: http://dev.tapjoy.com/faq/how-to-find-sender-id-and-api-key-for-gcm/

All 3 comments

Had the same problem, fixed it by entering the App ID in the senderID field. See here to obtain a senderID: http://dev.tapjoy.com/faq/how-to-find-sender-id-and-api-key-for-gcm/

Works!
Thanks

Thanks for this info. It would be good to have this in the docs.

Was this page helpful?
0 / 5 - 0 ratings