Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

JQuery App obtaining deviceID

I have followed this doc (jquery section): https://devcenter2.appery.io/document...

---------------

Use a Device ready event and delay of 1ms to retrieve the deviceID variable:

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

---------------

Trying to obtain the dviceID but I'm not able to do so. I get a error "Class not found"

Am I missing a javascript library perhaps? I can't find any plugins to add to my app using Create new From Plugins

Any suggestions?

saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

JQuery App obtaining deviceID

hi Dupdroid,

check u have LSV pushNotificationDeviceID.if not create one local storage.

And try this code to retreive deviceID

var v = Apperyio.storage.pushNotificationDeviceID.get();
alert( v );

Regards

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

JQuery App obtaining deviceID

Thank you Saurabh, that helped.

saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

JQuery App obtaining deviceID

Hi Dupdroid.

Thanks for the update.

Glad that works for you.

Regards.

Return to “Issues”