maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Windows Phone Emulator white screen

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

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

Windows Phone Emulator white screen

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

ghuisintveld
Posts: 0
Joined: Fri Jun 08, 2012 11:29 am

Windows Phone Emulator white screen

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.

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

Windows Phone Emulator white screen

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Windows Phone Emulator white screen

Have you tried using the local storage API directly?

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

ghuisintveld
Posts: 0
Joined: Fri Jun 08, 2012 11:29 am

Windows Phone Emulator white screen

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Windows Phone Emulator white screen

Can you show the exact code you used?

ghuisintveld
Posts: 0
Joined: Fri Jun 08, 2012 11:29 am

Windows Phone Emulator white screen

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Windows Phone Emulator white screen

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.

Return to “Issues”