grrrian/phonegap-parse-plugin

GCMSenderID is not registered in Parse.Installation Object

Closed this issue · 1 comments

Thanks for the plugin!!
The following issue is happening in both this one and the parent version (avivais, which is missing the bolts jar by the way), but works with benjie version.

see also here: http://stackoverflow.com/questions/24424291/phonegap-parse-plugin-installations-are-showing-but-notifications-arent-being-r

Here is the problem:

I was able to save the registration, also subscribe/unsubscribe to a channel, however the deviceToken Is null. I guess that is why I am not able to get any notification from parse.
I saved the SenderID and API Key in Parse. Also created a MainApplication and added the name to Application tag in Android Manifest file.
PS. When I used the benjie version, I was able to receive notification when app was running (also deviceToken was null in parse). How can I make sure the Device Registration ID is received and added to the installation object in parse (I assume that should be saved in deviceToken like in iOS version) ?

Is it possible to have a working example added, so anybody can benefit?

I opened a bug report with parse and it seems for Custom GCM SenderId it should be set by client app (plugin). Android SDK won't provide that functionality from manifest file.
I used a beforeSave hook for installation in parse cloud to inject the GCMSenderId and now everything is working!