Friday, 17 December 2021

android webview local file setting root

So i am loading a local web application using a webview in android:

view.loadUrl("https://appassets.androidplatform.net/assets/dist/index.html")

However when i check the current route in my JavaScript it says https://appassets.androidplatform.net/assets/dist/index.html

This makes stuff like routing and file loading kind of a pain is there a way to set the root of the loaded application. so i can avoid the whole /assets/ ?



from android webview local file setting root

No comments:

Post a Comment