Does it work if instead of mapping from local storage to the request variable, you just use: localStorage.getItem('name') in JavaScript?
Does it work if instead of mapping from local storage to the request variable, you just use: localStorage.getItem('name') in JavaScript?
Hello! What PhoneGap version do you use? On what devices does this code work?
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.
Ok, thank you for information. We are working on this problem.
Have you tried using the local storage API directly?
localStorage.setItem('value', 'name);
localStorage.getItem('name');
Yes, I used custom javascript option and the code is similar to what you write.
Can you show the exact code you used?
It's in the test app. But I think your colleague Marina is working on this problemen.
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.