Page 1 of 1

Push notification devicetoken undefined

Posted: Sun Mar 15, 2015 6:54 pm
by Andrew Davidsburg

Hi! I am having trouble registering a push notification for my app. For some reason the deviceToken as undefined. I have tried a brand new app with the same codes and don't get the the error. Any idea what could be causing this?

Thanks!

Andrew


Push notification devicetoken undefined

Posted: Sun Mar 15, 2015 8:35 pm
by Andrew Davidsburg

Okay so I think i got it. It seems that adding these lines to my Androidmanifest.

<!-- This app has permission to register and receive data message. --

Not totally sure why this works, but it does!


Push notification devicetoken undefined

Posted: Sun Mar 15, 2015 8:36 pm
by Andrew Davidsburg

"
<!-- This app has permission to register and receive data message. --
"


Push notification devicetoken undefined

Posted: Sun Mar 15, 2015 8:56 pm
by Andrew Davidsburg

This one!


Push notification devicetoken undefined

Posted: Sun Mar 15, 2015 9:09 pm
by Alena Prykhodko

Hello Andrew,

Have you managed with this?


Push notification devicetoken undefined

Posted: Wed Mar 18, 2015 2:10 am
by Andrew Davidsburg

Hi Alena! Yes I used the code below in my android manifest and it seemed to work!. Image