I am attempting to write an application that acquires and displays the Android device IDs for purposes of push notification.
According to the tutorial, I should be able to do this:
alert(PushNotification.getDeviceUniqueIdentifier());
Unfortunately, this never worked for me. After much trial and error, I was able to finally get the snippet shown below to work:
window.plugins.pushNotification.getDeviceUniqueIdentifier(function(id){ alert(id); });
Unfortunately, even this has stopped working! I get a “Class Not Found” error. Can anyone help? What is the proper technique for getting this identifier?
Thanks!!