-
Notifications
You must be signed in to change notification settings - Fork 444
onPushTokenReceivedCallback never called #253
Comments
@burkard are you running on a Google API's powered emulator ? |
@sasidhar678 no, I'm testing on two real devices (LG Leon 4g and Moto G2), both with Google Play Services, Gmail account, etc. Have you experienced it too? |
Yes ! But now it's working fine with both emulator and real devices. |
Could you please tell me how did you solved the issue? |
In my case, previously I tested on a Non-Google API's emulator. Did you add the two services in |
Yes, the services tags were added. I'll try to test on the emulator using a different system image. Meanwhile, I'll be using the nativescript-push-notification plugin. |
I just had the same problem, you should try checking out the
for
If the compile... line is commented, that's the reason you don't ever receive tokens - messaging is not compiled in, and hence the callback is registered, but app never registers in Firebase for messages. Un-comment, remove platform, build anew and let me know if that helped. |
I am facing the same issue. I receive the notification and the addOnMessageReceivedCallback() is called. But when the app is terminated. No notification is received by the device. Also, onPushTokenReceivedCallback() is never called when firebase is initiated. I have checked that the two services are added in AndroidManifest.xml and even firebase messaging is uncommented in the include.gradle What could be the issue? |
I had the same issue. |
I followed the steps tns platform remove android |
Pass 1 year still not fix this issue? I still have this problem. |
@nakorndev Oh, sorry, forgot to close. |
Hi,
The plugin works right, I can initialize it with the code below, and even login anonymously.
// this function IS CALLED!
console.log("data: "+JSON.stringify(data));
});
The problem is the function onPushTokenReceivedCallback is NEVER called.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: