GitHub user breautek added a comment to the discussion: White Screen on iOS

the loading errors refers to the map files, not the js sources themselves. 
Unless crafted to load from a remotely accessible server, they always fail in 
webviews because the web inspector (which runs on a workstation) doesn't have 
direct access to the local filesystem of the device where the map files are 
stored (usually beside the js sources). The map files simply provides original 
sources to the web inspector.

The fact that the web inspector is attempting to load the map files suggest 
that the respective js sources are being loaded, so I don't think it's an issue 
of firebase or axios failing to load, at least based on the screenshots it 
doesn't indicate that their sources are failing to load.

> What is the way to do the import for iOS ? I need a way that works into 
> Android and iOS.

To answer this question though, standard web behaviour applies. In your HTML, 
you have script references using a relative `js/...` path, which will be 
relative to the directory that the HTML file resides in. Assuming you're using 
the same file/folder structure within the `www` directory for both android and 
ios, then it should work in both platforms as far as loading goes.


GitHub link: 
https://github.com/apache/cordova/discussions/550#discussioncomment-13592490

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to