Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

How to find Device ID to send Push Notification to a Specific Device

Hi,

I have my app setup and registers properly for push notifications.
I am able to send push notifications to all users and it works great.

I want to do some testing and send push notifications only to my specific personal device.

How can I tell what my device ID is?
I am assuming I need my device ID and then I would only select this ID rather that choosing all IDs.

What is the best way to locate my specific device ID?

Thanks
Marco

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

How to find Device ID to send Push Notification to a Specific Device

I am assuming this involves adding the js into the code of the app, and then reinstalling the newly created app on the device.

I was just wondering if there was an easier way that I could do it through the device directly.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to find Device ID to send Push Notification to a Specific Device

Hello Marco,

No, unfortunately seems that this is the only way.

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

How to find Device ID to send Push Notification to a Specific Device

Just a question on this issue. The Device ID that I would use to send push notifications to a specific device, is this the UUID?

And if so, this is different than the UDID correct?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to find Device ID to send Push Notification to a Specific Device

The device.uuid parameter or other deviceID variables that can be retrieved by 3rd party applications are not the variables that Appery.io push notifications need to work properly.

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

How to find Device ID to send Push Notification to a Specific Device

Ok Thanks.

But when I use the following code to find the device ID, this is the device ID I can use to query push notifications to only one device, correct?

setTimeout(function() {
alert(localStorage.getItem('pushNotificationDeviceID'));
}, 1);

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to find Device ID to send Push Notification to a Specific Device

Hi Marco -

Yes, that's correct.

Return to “Issues”