This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
data.registrationId is empty string "" on register event callback #295
Comments
macdonst
added a commit
that referenced
this issue
Nov 2, 2015
@kentmw fixed in 1.4.1 which has been pushed to NPM |
chaffeqa
added a commit
to sportstech/phonegap-plugin-push
that referenced
this issue
Nov 3, 2015
* 'master' of github.com:phonegap/phonegap-plugin-push: Version 1.4.2 Issue phonegap#299: 1.4.x not showing notification on Android Version 1.4.1 Issue phonegap#295: data.registrationId is empty string "" on register event callback Issue phonegap#291: Reregister on Android [typo] fixing .finish() example Update CHANGELOG Version 1.4.0 Issue phonegap#93: Receive Notifications in Background
This thread has been automatically locked. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For Android, I was receiving an empty string "" on the register callback. Everytime I initialized the plugin, it would consistently return an empty string. When I un-installed the app and re-installed it, I received an actual token.
I don't know why this would occur, but I wanted to report it.
I think it has to do with the fact that register call in PushPlugin.java uses SharedPreferences to return a stored registration id. If, for some reason, both of the top two if statements fail in the following code block, it will just rely on (hope that there is) a stored registration id.
See PushPlugin.java:
The text was updated successfully, but these errors were encountered: