Matt6097125
Posts: 0
Joined: Tue Jul 30, 2013 6:56 pm

Trouble with sending Push notifications to device

Hi There -

I've followed the tutorial for sending push notifications here: http://docs.appery.io/tutorials/sendi...

I can send a push notification to all devices fine, but when I try for just one device it's not working.

How do I go about troubleshooting? I have my app running the RegisterDevice and SubscribeChannel services on startup, but I can't tell if it's actually registering.

Thanks for the help.

-Matt

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble with sending Push notifications to device

Hi, could you clarify what device you use? Add button o screen and on button click run the following code:
codealert(localStorage.getItem('pushNotificationDeviceID'));/code
After device is registered click this button and check if device id you entered in console while sending push is matching the one in alert. Could you send us that device id (you can send it at a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a)

Matt6097125
Posts: 0
Joined: Tue Jul 30, 2013 6:56 pm

Trouble with sending Push notifications to device

That did it. There's a "null;" prepended to the device id that is needed for the push. Thanks for the help.

Return to “Issues”