-
Notifications
You must be signed in to change notification settings - Fork 990
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
Routing error in WKWebView on iOS16 and above when building with Xcode14.3 #1324
Comments
The short answer is that you'll need to use a custom scheme instead of file URLs. The long answer is that what you're trying to do doesn't make sense with file URLs and is actually forbidden by the HTML specification: https://html.spec.whatwg.org/multipage/history.html#can-have-its-url-rewritten WebKit changed their behaviour in iOS 16.4 to match Chrome and the HTML spec: WebKit/WebKit@78a55cf So it's fine to use Maybe your framework has an option to use hash-based URLs for routing? |
Thank you for your response. I appreciate it very much. |
This comment was marked as off-topic.
This comment was marked as off-topic.
It's not broken, I've just created a new app with cordova-ios 6.3.0 and it's working fine with a custom scheme. |
This comment was marked as off-topic.
This comment was marked as off-topic.
In that case, can you create a new issue and provide a sample app that reproduces that issue? But for regular use case, it's working fine. |
Running a Cordova app and ran across this same error in Xcode. I added this to my config.xml to set a custom URL scheme and it fixed the issue for me.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
The original reporter reported this issue in the context of using the history API with
As noted above, if Closing as not-a-bug. |
Bug Report
Problem
What is expected to happen?
What does actually happen?
Routing error on iOS16 and above when building Angular app with Xcode14.3
The same problem reported in the APPLE forum below occurs.
Please let us know if there is any way to solve this problem with Cordova.
https://developer.apple.com/forums/thread/728157
Information
Command or Code
Environment, Platform, Device
Version information
Xcode バージョン 14.3 (14E222b)
"cordova-ios": "^6.3.0"
Checklist
The text was updated successfully, but these errors were encountered: