-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Push notifications not being received by android device #1577
Comments
For some context on how I got to this point, you can take a look at the issue I opened here: In short I got push notifications working for Parse.com, and they broke when I moved to parse server, though everything else kept working. |
Try running your server with VERBOSE=1 this will log the response from GCM. |
I started with the parse server example on heroku, do you know how I would go about enabling verbose on there? Sorry if this is a really basic question, I am very new to a lot of this stuff. |
One way is to run your Parse Server with the var myServer = ParseServer({
verbose: true,
...otherOptions
}); |
I have managed to get push notifications working in a test app using Unity, Parse Server and Heroku, however when I try the same configuration in our actual game, the push notifications never come through.
I am running Parse Server 2.2.7 on Heroku with MongoDB, and the test app does not have anything that the main app is missing.
All other Parse functionality is working fine, even the installation is saved with a device token, however when I send a push notification if the device token was generated by the test app it works fine, but if it is using the token generated by our actual game I see this in the _PushStatus document in my DB, and it never gets through to the phone:
I can't figure out how to troubleshoot this, I need more than 'it failed for android' to try and debug this but I don't know where to look as there is nothing in the logs.
I tried going through this repo trying to figure out where 'numFailed' was incremented, and eventually dug all the way down to PushAdapter.js but had no luck finding any more information as to what determines whether the device token is valid or whatever is blocking it.
If I copy the device token from the test app to the install generated by the new app it all works fine as well, so it is definitely an issue with the way the device registers or the way the push notification is trying to be sent.
Would really appreciate any help on this as I am very stuck, just basically doing trial and error to see if stuff works at this point.
The text was updated successfully, but these errors were encountered: