Skip to content
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

The <content /> config setting for the entrypoint of the app is not working #1217

Closed
3 tasks done
CodeWithOz opened this issue Jan 18, 2022 · 5 comments
Closed
3 tasks done

Comments

@CodeWithOz
Copy link

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

Command or Code

Create a new cordova project, rename the index.html file to main.html, then build the app.

Environment, Platform, Device

Using iPhone simulator (xcode 13) to run an iPhone 13 simulator running iOS 15.2

Version information

cordova ios v6.2.0, cordova cli 11

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@jcesarmobile
Copy link
Member

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

@CodeWithOz
Copy link
Author

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

@jcesarmobile
Copy link
Member

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)

@msmtamburro
Copy link
Contributor

Schemes look like they're currently broken due to: #1223 (comment)

@jcesarmobile
Copy link
Member

I've retested on cordova-ios 6.3.0 and it's working fine.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants