You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/01/18 15:43:46 UTC

[GitHub] [cordova-ios] CodeWithOz opened a new issue #1217: The config setting for the entrypoint of the app is not working

CodeWithOz opened a new issue #1217:
URL: https://github.com/apache/cordova-ios/issues/1217


   # Bug Report
   Specifying a custom entry point for the app using `<content src="someothername.html" />` is not working.
   
   ## Problem
   My app's entry point is named `main.html` rather than `index.html`. On Android it works as expected, the file is loaded when the app boots up. But on iOS the document never loads. Instead I get this message in the network tab of dev tools: `The resource was requested insecurely`. Changing the name to `index.html` makes it work properly.
   
   ### What is expected to happen?
   The document should load the entrypoint file that's specified by the `<content>` tag in `config.xml`.
   
   
   ### What does actually happen?
   The app builds but the document doesn't load. The html of the app just shows
   ```
   <html>
     <head></head>
     <body></body>
   </html>
   ```
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   Create a new cordova project, rename the `index.html` file to `main.html`, then build the app.
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Using iPhone simulator (xcode 13) to run an iPhone 13 simulator running iOS 15.2
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   cordova ios v6.2.0, cordova cli 11
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [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: issues-unsubscribe@cordova.apache.org

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



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


[GitHub] [cordova-ios] jcesarmobile commented on issue #1217: The config setting for the entrypoint of the app is not working

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #1217:
URL: https://github.com/apache/cordova-ios/issues/1217#issuecomment-1017593322


   cordova-ios 6.x also supports using schemes, I thought it was the default already, but looks like it was changed to default to file, so can you configure a scheme to use? i.e `<preference name="scheme" value="ionic" />` (so it uses the same as ionic webview plugin and you don't lose any data)


-- 
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: issues-unsubscribe@cordova.apache.org

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



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


[GitHub] [cordova-ios] jcesarmobile commented on issue #1217: The config setting for the entrypoint of the app is not working

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #1217:
URL: https://github.com/apache/cordova-ios/issues/1217#issuecomment-1015856608


   On Slack you commented that you were using ionic webview plugin, have you tried without it?


-- 
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: issues-unsubscribe@cordova.apache.org

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



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


[GitHub] [cordova-ios] CodeWithOz commented on issue #1217: The config setting for the entrypoint of the app is not working

Posted by GitBox <gi...@apache.org>.
CodeWithOz commented on issue #1217:
URL: https://github.com/apache/cordova-ios/issues/1217#issuecomment-1017507041


   Yes I tried without the plugin and it worked but on the `file://` protocol.


-- 
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: issues-unsubscribe@cordova.apache.org

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



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