Page 1 of 2

pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Mon Mar 07, 2016 11:25 pm
by apollo mcowiti

I developed an app with jquery mobile.
I exported the app to an .ipa file and installed it on iphone6. It works fine.
But "pushNotificationDeviceID" never populates in the devices collection ( i even tried detaching and re-attaching the database as suggested in some forums).

I tried to see if it is generated on device ready event, as the forums suggest (code below), but it is always undefined.

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

Help.


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Tue Mar 08, 2016 4:01 pm
by Illya Stepanov

Hello -

We have tested and everything works correctly on iOS devices.

Can you let us know which device you're using and what Libraries version are set for your Appery.io project?

On which event in your app you're running the JS code?


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Tue Mar 08, 2016 5:21 pm
by apollo mcowiti

1) Device runs iOS 9.1
2) Library versions 3.0
Built in resources version
cordova 4.0
jquery 2.1.1
jquery mobile 1.4.5
underscore 1.7.0

3) the JS code is on the very first page of my project and attached on Device Ready event


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Tue Mar 08, 2016 5:22 pm
by apollo mcowiti

1) Device runs iOS 9.1
2) Library versions 3.0
Built in resources version
cordova 4.0
jquery 2.1.1
jquery mobile 1.4.5
underscore 1.7.0

3) the JS code is on the very first page of my project and attached on Device Ready event


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Wed Mar 09, 2016 4:52 pm
by apollo mcowiti

Still waiting on you...


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Wed Mar 09, 2016 4:52 pm
by apollo mcowiti

) Device runs iOS 9.1
2) Library versions 3.0
Built in resources version
cordova 4.0
jquery 2.1.1
jquery mobile 1.4.5
underscore 1.7.0

3) the JS code is on the very first page of my project and attached on Device Ready event


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Wed Mar 09, 2016 10:30 pm
by Illya Stepanov

Thank you, we need some time to test it additionally on the device.


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Wed Mar 09, 2016 11:59 pm
by apollo mcowiti

thanks, let me know what you find out


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Sat Mar 12, 2016 12:06 pm
by Illya Stepanov

On our devices everything works correctly with this JS code.


pushNotificationDeviceID always undefined when app installed in iphone6

Posted: Mon Apr 04, 2016 6:03 pm
by apollo mcowiti

I am absolutely unable to get a deviceID/token registered.

The registration did occur once, and only once, but after i uninstalled the app, and many re-installs of the .ipa later, no deviceID/token has been generated again.

Are there some other items, processes/preconditions that i am unaware of that has effect to this registration? Is it possible that the appery.io packager (the appery.io flash screen i see as the app is starting on the device) is completing too fast and not be having enough time to register the device?