You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2022/01/17 11:55:44 UTC

[GitHub] [cordova] cellcrowd opened a new issue #314: iOS Simulator shows 'about:blank' when scheme/hostname preferences are set

cellcrowd opened a new issue #314:
URL: https://github.com/apache/cordova/issues/314


   # Bug Report
   
   ## Problem
   When adding
   ```
   <preference name="scheme" value="app" />
   <preference name="hostname" value="localhost" />
   ```
   into the `<platform name="ios">` section, the iOS simulator shows "about:blank" page instead of "index.html" page
   
   ### What is expected to happen?
   App should display "index.html" page
   
   ### What does actually happen?
   App display "about:blank" page
   
   ## Information
   
   ### Command or Code
   - cordova create hello com.example.hello HelloWorld
   - cordova platform add ios
   - cordova emulate ios --target="iPhone-8-Plus, 15.2" (shows index.html)
   - added scheme/hostname preferences inside ios section as per above
   - cordova emulate ios --target="iPhone-8-Plus, 15.2" (shows about:blank)
   
   ### 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
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] cellcrowd closed issue #314: iOS Simulator shows 'about:blank' when scheme/hostname preferences are set

Posted by GitBox <gi...@apache.org>.
cellcrowd closed issue #314:
URL: https://github.com/apache/cordova/issues/314


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] cellcrowd commented on issue #314: iOS Simulator shows 'about:blank' when scheme/hostname preferences are set

Posted by GitBox <gi...@apache.org>.
cellcrowd commented on issue #314:
URL: https://github.com/apache/cordova/issues/314#issuecomment-1014464952


   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)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] cellcrowd commented on issue #314: iOS Simulator shows 'about:blank' when scheme/hostname preferences are set

Posted by GitBox <gi...@apache.org>.
cellcrowd commented on issue #314:
URL: https://github.com/apache/cordova/issues/314#issuecomment-1014598951


   Closing the issue here in favour of the cordova-ios issue tracker, https://github.com/apache/cordova-ios/issues/1215


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org