Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Push notification devicetoken undefined

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

Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Push notification devicetoken undefined

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!

Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Push notification devicetoken undefined

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Push notification devicetoken undefined

Hello Andrew,

Have you managed with this?

Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Push notification devicetoken undefined

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

Return to “Issues”