Access Denied on Android for WebView

my WebView works very well on the simulator and also on an Amazon fire7 tablet. But when I try it on Samsung A31 Android phone I get this error message.

file:///data/user/0/com.solar2d.app.Anderson/app_data/class1/ns1.html
for the reason
net::ERR_ACCESS_DENIED

anyone have an idea?

add this line

webView:setNativeProperty(“setAllowFileAccess”, true)

then

webView:request( "…

WARNING: [object.setNativeProperty()] The native object does not support the key (setAllowFileAccess) on this platform.

I am guessing this is on simulator, try on device

I already testing on device it works, but because the warning I guess this will cause malfunction on device.
I have already tested it on device however I guess it could cause a bug in its operation.

it is not webView . setNativeProperty

not a dot
it is a colon

webView : setNativeProperty

1 Like

thanks !
it works now

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.