You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to load a js file which is located in assets/js/[myfile].js in index.html in ionic src folder , it tries to load that file from the custom hostname specified http://[hostname]/assets/js/[myfile].js rather than loading it from the local asset . This happens only when I install the webview plugin and in android 9.0 . It works in previous android versions.
The text was updated successfully, but these errors were encountered:
@jcesarmobile I just stumbled across this issue, after changing the Hostname to fix the iOS cookie issue (#22).
If the hostname is set to "xyz.example.com" and the domain does not exist, everything works fine. If the domain is in use, the loading of all assets in android breaks, as for every asset the actual server is requested, not the local server. Note, it didn't help to change the scheme (default http) to something else, eg. "ionic".
My fix was to only configure the Hostname for the ios platform and leave the android defaults.
At the end there seems to be a bug on the android-side of the ionic plugin.
edit: I've reproduced the issue on two devices, one with Android 10, one with Android 6. This differs from the original poster.
If I try to load a js file which is located in assets/js/[myfile].js in index.html in ionic src folder , it tries to load that file from the custom hostname specified http://[hostname]/assets/js/[myfile].js rather than loading it from the local asset . This happens only when I install the webview plugin and in android 9.0 . It works in previous android versions.
The text was updated successfully, but these errors were encountered: