Page 1 of 1

JQuery App obtaining deviceID

Posted: Tue Sep 06, 2016 7:16 am
by Dupdroid

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?


JQuery App obtaining deviceID

Posted: Tue Sep 06, 2016 9:14 am
by saurabh8122815

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


JQuery App obtaining deviceID

Posted: Wed Sep 07, 2016 7:58 am
by Dupdroid

Thank you Saurabh, that helped.


JQuery App obtaining deviceID

Posted: Wed Sep 07, 2016 12:28 pm
by saurabh8122815

Hi Dupdroid.

Thanks for the update.

Glad that works for you.

Regards.