Miguel Angel Camacho
Posts: 0
Joined: Thu Apr 24, 2014 12:53 pm

Problem registering tokenini IOS

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problem registering tokenini IOS

Hello!

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

Miguel Angel Camacho
Posts: 0
Joined: Thu Apr 24, 2014 12:53 pm

Problem registering tokenini IOS

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

Any other suggestions?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Problem registering tokenini IOS

Hi Miguel,

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

Return to “Issues”