Page 2 of 2

Windows Phone Emulator white screen

Posted: Thu Aug 16, 2012 2:11 pm
by maxkatz

Does it work if instead of mapping from local storage to the request variable, you just use: localStorage.getItem('name') in JavaScript?


Windows Phone Emulator white screen

Posted: Fri Aug 17, 2012 7:30 am
by Maryna Brodina

Hello! What PhoneGap version do you use? On what devices does this code work?


Windows Phone Emulator white screen

Posted: Wed Aug 22, 2012 11:34 am
by ghuisintveld

I use Phonegap 1.8.1 (comes with Tiggzi). The code works perfectly fine on android and ios.

I've been trying some more and I've created a very simple app to set and get a var in localStorage. If I set the value to 'test' it seems to work fine, but if I set the value to 'https://www.domain.com' Windows Phone returns the value 'https:' when getting. I'll share the app for you. It's called "Test app".

Maybe this has something to do with my Windows Phone problems.


Windows Phone Emulator white screen

Posted: Wed Aug 22, 2012 2:54 pm
by Maryna Brodina

Ok, thank you for information. We are working on this problem.


Windows Phone Emulator white screen

Posted: Wed Aug 22, 2012 3:49 pm
by maxkatz

Have you tried using the local storage API directly?

localStorage.setItem('value', 'name);
localStorage.getItem('name');


Windows Phone Emulator white screen

Posted: Wed Aug 22, 2012 3:54 pm
by ghuisintveld

Yes, I used custom javascript option and the code is similar to what you write.


Windows Phone Emulator white screen

Posted: Wed Aug 22, 2012 3:55 pm
by maxkatz

Can you show the exact code you used?


Windows Phone Emulator white screen

Posted: Mon Aug 27, 2012 2:59 pm
by ghuisintveld

It's in the test app. But I think your colleague Marina is working on this problemen.


Windows Phone Emulator white screen

Posted: Mon Aug 27, 2012 3:53 pm
by maxkatz

If this code fails:

localStorage.setItem('value', 'name);
localStorage.getItem('name');

then it's something with the Windows Phone browser. Above is standard browser API for accessing local storage.