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.