Hi.
Webview doesn’t work on Preview and my device(Android)
This is a source code in the Learn/Fuse.
<App Theme="Basic" Background="#333">
<JavaScript>
module.exports = {
onPageLoaded : function(res) {
console.log("WebView arrived at "+ JSON.parse(res.json).url);
}
};
</JavaScript>
<DockPanel>
<StatusBarBackground Dock="Top"/>
<NativeViewHost>
<WebView Dock="Fill" Url="http://www.google.com">
<PageLoaded>
<EvaluateJS Handler="{onPageLoaded}">
var result = {
url : document.location.href
};
return result;
</EvaluateJS>
</PageLoaded>
</WebView>
</NativeViewHost>
<BottomBarBackground Dock="Bottom" />
</DockPanel>
</App>
I just changeed the theme “Native” to “Basic”. And It also had an same erroe before changing.
This is error message.
I/SqliteDatabaseCpp(18232): sqlite returned: error code = 14, msg = cannot open file at line 29848 of [c7c6050ef0], db=/data/data/com.example/databases/webview.db
I/SqliteDatabaseCpp(18232): sqlite returned: error code = 14, msg = os_unix.c:29848: (2) open(/CachedGeoposition.db) - , db=/data/data/com.example/databases/webview.db
I/SqliteDatabaseCpp(18232): sqlite returned: error code = 14, msg = cannot open file at line 29848 of [c7c6050ef0], db=/data/data/com.example/databases/webview.db
I/SqliteDatabaseCpp(18232): sqlite returned: error code = 14, msg = os_unix.c:29848: (2) open(/GeolocationPermissions.db) - , db=/data/data/com.example/databases/webview.db