Page 1 of 1

Change on pushNotificationDeviceID variable

Posted: Tue Jan 07, 2014 12:16 pm
by anelezeravla

Hello,
Apparently the way pushNotificationDeviceID variable works has changed since we started working on our project.

Originally, pushNotificationDeviceID variable returned a string that looked like 359966057237910;83b3a2e99c099ef2

However, now it returns something similar to:

null;83b3a2e99c099ef2

This change causes that our notification system will never work for new devices.

What has changed? How can we solve this? This is quite urgent for us, due to to the advanced state of our project.

Thank you very much


Change on pushNotificationDeviceID variable

Posted: Tue Jan 07, 2014 12:24 pm
by Igor

Hello,

Please take a look at this reply:
https://getsatisfaction.com/apperyio/...


Change on pushNotificationDeviceID variable

Posted: Tue Jan 07, 2014 12:30 pm
by anelezeravla

Hello, Igor
That question is also ours. Back then, the variable returned the entire value (we were experiencing some trouble with unregistering), this is a different issue. The problem now is that pushNotificationDeviceID is not returning the complete value.


Change on pushNotificationDeviceID variable

Posted: Tue Jan 07, 2014 12:36 pm
by Igor

Could you please tell us the steps how can we reproduce this?


Change on pushNotificationDeviceID variable

Posted: Tue Jan 07, 2014 12:41 pm
by vcalero

We have got next code in device ready event:

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

this code now show null;83b3a2e99c099ef2 a few weeks a go showed 359966057237910;83b3a2e99c099ef2

Thanks!


Change on pushNotificationDeviceID variable

Posted: Tue Jan 07, 2014 7:40 pm
by Illya Stepanov

Hi -

On what device (OS version) are you testing?
Can you share this app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a we will test it.


Change on pushNotificationDeviceID variable

Posted: Wed Jan 08, 2014 8:56 am
by anelezeravla

It happens on every device we have tested (android 4.0.0, android 4.1.1, android 2.3.6, etc).

The app is already shared with Appery support team, we'll email you with the name.

Thanks!


Change on pushNotificationDeviceID variable

Posted: Thu Jan 09, 2014 4:10 pm
by Maryna Brodina

Hello! You return variable from localStorage, how did you save it there? Please check this post and let us know if it helps https://getsatisfaction.com/apperyio/...


Change on pushNotificationDeviceID variable

Posted: Mon Jan 13, 2014 2:00 pm
by vcalero

Hello Maryna,

It's weird... my localStorage.getItem('pushNotificationDeviceID') it's

null;83b3a2e99c099ef2

but the push notification are working fine!


Change on pushNotificationDeviceID variable

Posted: Mon Jan 13, 2014 3:04 pm
by Maryna Brodina

Hello! There is nothing to worry about. It's a regular device id.