-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Flutter should provide tutorial for setting up universal link in iOS #7913
Comments
cc @johnpryan |
Two ways to set up the universal link through xcode:
manually:
|
i made these steps and it didn't work. i got this from system diagnoseService: applinks
|
Hi this could indeed be a great addition to the Flutter documentation ! In case anyone has the same issue as me, I've actually followed this exact steps & universal link works in iOS simulator but not on a real iOS device seems to be related to https://developer.apple.com/forums/thread/720917
|
Just to clarify - do we have an issue to document Android App Links too? |
No We don't have one |
Transferring this issue to flutter/website |
App links issue: #7914 |
I tested a little bit and found the following.
|
It looks like I forgot to set the flag in info.Plist, otherwise things work correctly. |
I've finally got universal links to open my app on iOS but universal link doesn't pass the route to Flutter as you've experienced @chunhtai have you found a solution to this issue ? : ) |
@AristideVB have you set
in info.pList ? |
I had not, I thought that was only for deeplinking & not universal links ! Universal links works now with this flag enabled, thanks so much @chunhtai 🙂
|
sorry for the confusion. I will have a more detailed tutorial up with all the requirements and steps sometime soon. |
I was wondering if you could also look through my issue pending the documentation readiness and help me rectify.: I have set up Universal Links on my flutter project for IOS. Like the title suggests, my app does open when I click on a link relating to my site but it does not navigate to the correct page. It just opens the app. https://developer.apple.com/videos/play/wwdc2019/717/ https://nishbhasin.medium.com/apple-universal-link-setup-in-ios-131a508b45d1 https://www.kodeco.com/6080-universal-links-make-the-connection I have setup my apple-app-site-association file to look like:
and I have added this to my info.plist file:
and my AppDelegate.swift file looks like:
My Runner-entitlements are also setup correctly like:
The issue is, if I click a hyperlink for www.example.com/mypath , it does not got to the page/route handled by /mypath, but instead just opens the app. My routing is done using go_router: ^5.2.4 I also tried adding a component that hardcoded a path in my app, still got same results. Basically "/": "/feed" as a component but when I clicked www.example/feed, same result...it just opened the app. Please does anyone know why this is happening? I'm blocked by this. I have seen similar questions on stack overflow, but none with answers that have worked for me. Any help is appreciated. Flutter Doctor -v output: [✗] Android toolchain - develop for Android devices [✓] Xcode - develop for iOS and macOS (Xcode 14.1) [✓] Chrome - develop for the web [!] Android Studio (not installed) [✓] VS Code (version 1.74.2) [✓] Connected device (3 available) [✓] HTTP Host Availability ! Doctor found issues in 2 categories. |
Ok so figured it out. The official apple documentation requests the addition of a variation of this function in the AppDelegate.swift file:
Taking that function out and just having this in my info.plist worked (everything else stayed the same):
|
Meanwhile, as we think about revamping our docs page for deep linking, I would like to request we not only add the iOS section but also expand the existing Android section with more step-by-step guidance. Can we incorporate John's talking points from the recently launched deep-linking video (https://www.youtube.com/watch?v=KNAb2XL7k2g)? |
Here's the issue to track documentation for App Links: #7914 |
I followed the documentation, but failed to get my universal link working for iOS. (The recipe for Android works perfectly.) My experience matches this existing issue: flutter/flutter#123985 I do see from the server logs that in "developer" mode the association file is read, but when triggering the simulator with the indicated Any thoughts on what might be missing, or how to debug at the app side what could be causing the problem? |
Currently the https://docs.flutter.dev/development/ui/navigation/deep-linking only provide steps to set up custom schema for iOS, It should also provide steps to set up universal link.
The text was updated successfully, but these errors were encountered: