0

I have succesfully got android gcm working on my local network. However I observe that my server url is a an ip address in the 192.168 range. When I register this device on the same network it registers succesfully and I can send messages to it. But after registration if I switch my device to another network and try to send a gcm message I observe it does not work. I dont understand why this is happening. According to the architecture the app contacts the application server only once. After that all messages are relayed through the Google server. So even though the ip address is a local one, once my device is registered I should be able to switch over to a different network

1 Answer 1

0

Please try this: 1. Go to https://code.google.com/apis/console/

  1. Click on API Access

  2. It will show you all key related to your account.

  3. Go to they key you are using in your APP for GCM & check for refer:

it should be

Referers: Any referer allowed

Hope this help.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.