-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Simulator shows 'about:blank' when scheme/hostname preferences are set #1215
Comments
Confirmed working when starting the simulator from XCode instead of the CLI |
There is a known issue on iOS simulator when running on M1 macs. |
I got the very same issue, but even from the XCode it doesn't work for me if I set the config like this
App displays "about:blank" page, and the XCode console says something like this
It works well if I set it like so
I'm completely confused, I wasn't able to find clear documentation for those preferences. So the question is, should I use different config settings for the production and debug, or should I put it the way it works on the simulator? Or maybe I should not use the simulator for the ios on the M1 chip and just leave the config like it was working before on the Intel? |
Bug Report
Problem
When adding
into the
<platform name="ios">
section of config.xml, the iOS simulator shows "about:blank" page instead of "index.html" pageWhat is expected to happen?
App should display "index.html" page
What does actually happen?
App displays "about:blank" page
Information
This bug does not happen on real devices, only in the simulator
When running
document.location = 'app://index.html'
through the Safari debugger, the page loads. However, it fails to load CSS with error: Did not parse stylesheet at 'app://index.html/css/index.css' because non CSS MIME types are not allowed in strict mode.Running
document.location = 'app://localhost'
does the same as above with error: Did not parse stylesheet at 'app://localhost/css/index.css' because non CSS MIME types are not allowed in strict mode.Running
document.location = 'app://'
shows 'about:blank'Running
document.location = 'app://localhost/index.html'
does not do anything (returns "app://localhost/index.html" = $1 in console)Command or Code
Environment, Platform, Device
iOS Simulator on Mac OS Big Sur 11.6, Mac Mini (M1, 2020) 8GB
Version information
Cordova CLI 11.0.0
Cordova iOS 6.2.0
Checklist
The text was updated successfully, but these errors were encountered: