uni_links
uni_links copied to clipboard
Opening https url with `xcrun simctl openurl` doesn't launch app
I'm using https scheme and am testing in iOS Simulator which is running iOS14.2.
I'm starting with a fresh flutter app and trying to get xcrun simctl openurl
to launch my flutter app, but the URL I'm opening is opening in Safari and not launching my app.
Note: I'm not attempting to handle the links within my flutter app yet, as I can't get the simulator to open the app yet. I'm assuming iOS should at least open my app if my apple-app-site-association file is correct and my entitlements are properly configured. If this assumption is false, please let me know.
I've uploaded the app to https://github.com/ryanhanks/uni_links_example. The git history on this app should reflect the steps I've taken in producing the results I'm seeing.
The following are the steps I've taken:
- Create a new flutter app via
flutter create --org net.bestow-sandbox --project-name app --platforms ios uni_links_example
- Configure automatic signing in Xcode
- Upload the apple-app-site-association to https://app2.bestow-sandbox.net/.well-known/apple-app-site-association
- Enable the app-site association entitlement
- Execute
flutter run
to get the app installed on the simulator - Open a file on my domain via
/usr/bin/xcrun simctl openurl booted https://app2.bestow-sandbox.net/index.html
-> opens in Safari - Enable the app-site association entitlement in developer mode
- Open a file on my domain via
/usr/bin/xcrun simctl openurl booted https://app2.bestow-sandbox.net/index.html
-> opens in Safari
I've validated the apple-app-site-association file via https://branch.io/resources/aasa-validator/
What am I missing here?
Here's the config for my App ID in Apple Developer Certificates and Identifiers:
Here's what I have for Signing & Capabilities in Xcode for my Runner:
https://github.com/avioli/uni_links/issues/95 appears to be related to what I'm observing.
This does not work only on iOS simulators, on real devices I did not notice problems.
@ryanhanks did you ever find a solution? I'm experiencing the same issue, can't seem to get iOS universal linking to work, tried on simulator & real device
@ryanhanks did you ever find a solution? I'm experiencing the same issue, can't seem to get iOS universal linking to work, tried on simulator & real device
Hi, did you get anything?