rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
179 stars 161 forks source link

android: got token but unable to receive push #40

Closed alexbleks closed 8 years ago

alexbleks commented 8 years ago

I do get a token but it won't receive push messages, any ideas?

blocksninja commented 8 years ago

Have you checked the result after sending the message? During debug deployments I often find that I get "NotRegistered" during sending a message. This seems to be a problem after some debug-deployments. When I then Unregister() and Register() again you will receive a new token and it will work again.

alexbleks commented 8 years ago

By the way, should I use the whole token or parse out the colon?

Push Notification - Device Registered - Token : ckE6IdUYpdY:APA91bFiqlV-P9xEj2hqLJJI2NRgie-FUYql_8SWwH8R2H28nfZf6uFdMvsvXhQn5nFhKk65aDDSjEJaTjUjHfuvKOZ49aMIqPoYOMsXpuXkbZKOQSmikej70Tk7W5KTk6QYpc1ni8Cv

blocksninja commented 8 years ago

You should use the whole token. From what I can remember the part before the colon didn't always exists, but you can just use the whole token.

alexbleks commented 8 years ago

I still can't receive messages but the server says OK.

Here is my android manifest:

`<?xml version="1.0" encoding="utf-8"?>

``` android:name="com.coolapp.coolapp.GcmMessageHandler" /> ``` `
rdelrosario commented 8 years ago

@alexbleks Are you still having issues?