HTML 5 local storage should be supported in the webView, but only for the webView. There is no way that I know of for your Lua code to access the newWebView’s data space. It’s sort of a black box.
I tried with WebPopup and newWebView but nothing. The html localStorage is working outside (chrome and safari), but when i use it inside the app it is not stored…
I also tried a simple xcode project with an UIWebview and also retrieves the stored values without problem.
Is there something i must put in config ? Maybe the dispose code?
this is the way i use the webview
visor = native.WebView( 0, 166, 1537, 1879 )
visor:request( hurl, system.ResourceDirectory )
I also tried moving html to the DocumentsDirectory just in case, but nothing.
I already found a workaround for my problem: passing urls with jquery inside the webview , catching de event in Corona event listener and writing back the data in json file ( using your useful table save and load json table … where the html file in the webview read it back when the session is restored.
HTML 5 local storage should be supported in the webView, but only for the webView. There is no way that I know of for your Lua code to access the newWebView’s data space. It’s sort of a black box.
I tried with WebPopup and newWebView but nothing. The html localStorage is working outside (chrome and safari), but when i use it inside the app it is not stored…
I also tried a simple xcode project with an UIWebview and also retrieves the stored values without problem.
Is there something i must put in config ? Maybe the dispose code?
this is the way i use the webview
visor = native.WebView( 0, 166, 1537, 1879 )
visor:request( hurl, system.ResourceDirectory )
I also tried moving html to the DocumentsDirectory just in case, but nothing.
I already found a workaround for my problem: passing urls with jquery inside the webview , catching de event in Corona event listener and writing back the data in json file ( using your useful table save and load json table … where the html file in the webview read it back when the session is restored.