WebViewAssetLoader

Hello, im trying to get godot html5 project to be loaded in kodular…
the thing is that godot in V3.3 uses fetch method to get engine and stuffs needed…

So fetch API doesnt support “file:///assets…”

the Feature i need is to load the assets folder trough http locally i’ve been seen that you can use an asset loader in android Studio like here:

https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader

This ways enables you to load i.e:
http://yourapp.kodular.com/assets/index.html

is there any way of implementing this in kodular it will be really appreciated

I was searching the community and came across this post, luckily is is still open. Let me reactivate it.
Now, is there a way or extension that can help kodular users to load html file from assets using https or localhost?
This will be useful in avoiding CORS related errors, we will be able to work with jspdf.js offline to render pdf in webview. We can unlock amazing features in webview if only we can load assets files through a http request.
Anyone with idea please share.

I’ve found a breakthrough. I will share a tutorial on this one of this coming days.

1 Like