Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Tokens not registering with server, with no response codes visible either #37

Open
raveeshbhalla opened this issue Apr 12, 2015 · 1 comment

Comments

@raveeshbhalla
Copy link

I had been looking to experiment with App Engine for GCM for a long time, and I'm glad I finally got to it. As easy as it looks, I unfortunately fail to register a token from a real device at any point. Specifically, the regService.register(registrationID) code runs without exception, but the tokens aren't visible in the API Explorer (and pushes are not working).

The same tokens, if pushed from the API explorer itself, work perfectly. Is there any way to get the response code of the Register.register() method?

My code is visible on the following link.
https://github.com/raveeshbhalla/Hermes/tree/gcm-endpoint-experimentation

Specifically, you want to be looking at this BroadcastReceiver that is fired whenever a registration occurs.
https://github.com/raveeshbhalla/Hermes/blob/gcm-endpoint-experimentation/hermesexample/src/main/java/in/raveesh/hermesexample/GcmBroadcastReceiver.java

@loosebazooka
Copy link
Contributor

You could try running in debug mode and inspecting the returned "Registration" object to see if you can find anything going wrong.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants