Page 1 of 1

Problem registering tokenini IOS

Posted: Thu Apr 24, 2014 12:57 pm
by Miguel Angel Camacho

Hi I'm trying to save the token on a localStorage variable as specified in the documentation:

setTimeout(function() {
alert(localStorage.getItem('pushNotificationToken'));
}, 1);

It's working ok in Android but it retrieves a null value on IOS version 7.

Any ideas why?

thanks a lot Miguel


Problem registering tokenini IOS

Posted: Thu Apr 24, 2014 1:52 pm
by Maryna Brodina

Hello!

Please try to set bigger timeout, instead 1ms specify 1000 for example.


Problem registering tokenini IOS

Posted: Thu Apr 24, 2014 3:31 pm
by Miguel Angel Camacho

We have 1000ms on the setTimeout and still get the same results.

Any other suggestions?


Problem registering tokenini IOS

Posted: Thu Apr 24, 2014 8:16 pm
by Kateryna Grynko

Hi Miguel,

On what event do you run the code? Try button click please.