Open theasmoth opened 7 years ago
I have the impression that some devices do not properly get the token. Possible they have disable Push in through app manager?!
In order to get a new token, I always had to clear its application cache (through App Manager - android) . So that the onTokenRefresh event fires again
Perhaps... Console.log ('onTokenRefresh:', token); Console.log ('onTokenRefresh:'+ token); Please change to.
same issue and similar code.
console.log ...
FCMPlugin.js: is created
FCMPlugin Ready OK
device is ready
callback successfully registered: OK
getToken:
getToken:
cordova version 6.5.0 tested in
Problem sovled... in my case,
I think I should build once server with 'server key' provide by fcm then it knows app registered. After I have built django app with serverkey once, token were sent to my android app.
hi, could you please explain more details as I also having the same issues? the token is not coming...
@contactwahyu use android emulator or xcode simulator i faced this problem using NOX app player
phonegap + plugin getToken() callback with empty string what im doing wrong?