-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I get the GCM_TOKEN? #5
Comments
Hello. This is an old issue, but if anyone else comes here wondering: GcmAndroid.addEventListener('register', function(token){
console.log('send gcm token to server', token);
}); There the token is sent to adb logcat '*:S ReactNative:V ReactNativeJS:V' |
hey i am getting this while adb logcat GcmAndroid.launchNotification internal', undefined |
i have tried this but i cant get anything on my console.log . It doesnt show any token . @fermuch |
@xphaul are you trying in a device or an emulator? |
@fermuch im on a device . an i got the device token now . My problem is now is that app cant listen on incoming notifications when it is on background state
this function doesnt work if app is on background and received a notification |
No description provided.
The text was updated successfully, but these errors were encountered: