localStorage in web popups

Does localStorage not work in web popups? And if not, is there a way to make it work? I have a 2-file project, which looks like what I’ve pasted below. It attempts to set a localStorage value, and then read it. But when I try to read it, I get a blank value every time.

**********************
Index.html:
**********************

[html]

LocalStorage Testing… if you did not see “test = 1” then localStorage is NOT working.

[/html]

**********************
main.lua
**********************

local options = { hasBackground=true, baseUrl=system.ResourceDirectory, urlRequest=webListener }

native.showWebPopup(0, 0, display.contentWidth, display.contentHeight, “index.html”, options) [import]uid: 94684 topic_id: 34614 reply_id: 334614[/import]

Very interesting question. Are you running this on iOS, Android or the Simulator? If you’re running it on the simulator have you tried it on the device?

Webviews should be using the devices native browser code, which in both device cases is a variant of Webkit so it should work, though I’m not sure how persistent that storage would be.
[import]uid: 199310 topic_id: 34614 reply_id: 137666[/import]

Very interesting question. Are you running this on iOS, Android or the Simulator? If you’re running it on the simulator have you tried it on the device?

Webviews should be using the devices native browser code, which in both device cases is a variant of Webkit so it should work, though I’m not sure how persistent that storage would be.
[import]uid: 199310 topic_id: 34614 reply_id: 137666[/import]