Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.customer: posse (eap)f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
We should document how to add deep links to an app. This is the first
use case mentioned in the larger discussion mentioned in bug 10975, quoted here for easy access:
- External URLs: A movie database app wants to register to take over handling URLs for its website. Now when the user clicks on the URL the details for that movie are shown in the app instead of the browser.
Android and iOS have mechanisms that allow an app to register as a handler for external URLs. Android uses App Links, and iOS uses URL Schemes. These mechanisms allow the app to register as a handler for URLs that can be invoked by other applications.
From a customer:
"We need a URL that will 1) take the user to a specific part in our app (a chat, for example) if they have the app installed or 2) take a user to the device specific app store and then do 1) after they install the app. I think this is called Google Play Referrer on Android "
#10452 added engine support for setting an initial route in a Flutter app, which is "deep" in the app (i.e., not the start page of the app) so this should be possible now, we just need some docs.
Reacted by amardeep, Günter Zöchbauer, Mario Noll, toregua, Franklin Wang, Philip Giuliani, Johannes Kaufmann, Seth Westphal, smoothdvd, bigboateng and 50 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.customer: posse (eap)f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Activity
eseidelGoogle commentedon Aug 14, 2017
Posse was able to add this to their recently published application. However we definitely need an example and eventually Docs for others to be able to repeat the feat.
sethladd commentedon Aug 14, 2017
Is this just a documentation/example request , or do we need something added to FlutterFire to get "Firebase Dynamic Links" ?
Carnivore needs ability to link into a specific screen of their app. Not sure if the technically need Firebase to do that.
mit-mit commentedon Aug 15, 2017
This tracks docs + simple example of "basic" deep links, e.g. the ability to redirect
app:orhttp:URLs to an app, and to have that URL communicate a "deep" page/route inside the app. We could layer Firebase Dynamic Links on top later.Hixie commentedon Aug 15, 2017
This is probably blocked on #11490 and the related bugs, since those will change how this will work.
sethladd commentedon Aug 15, 2017
See also this request for an example: #9768
I wonder if we can merge the example request and the doc request into one issue.
Ah, per #11607 (comment) I will close the other request for an example.
marwan-at-work commentedon Dec 7, 2017
@mit-mit any luck with an example for deep linking? I managed to open my flutter app from a browser with
myAppScheme://my-link?key=val-- but I have no idea how to getmy-linkorkey=valfrom the dart side. Thanks!40 remaining items
kendall-lu commentedon Mar 26, 2020
would love to hear an update about this
Bricktheworld commentedon Mar 27, 2020
Umm, is this possible at all?
csells commentedon Apr 13, 2020
I attempted to pull together everything you need to consider when it comes to handling deep linking, routing and navigation for Flutter from a web pov:
http://sellsbrothers.com/understanding-flutter-deep-links-on-the-web
I believe this is 80% of the content needed for deep linking on Flutter all up (the mobile-specific content is missing), although not in the format appropriate for the docs on flutter.dev.
HansMuller commentedon Sep 10, 2020
CC @johnpryan
chunhtai commentedon Feb 12, 2021
We added a document for deeplinking https://flutter.dev/docs/development/ui/navigation/deep-linking, closing this issue
maheshj01 commentedon Feb 14, 2021
Thanks for this helpful doc but it would also be great if you could add some details on how we can fetch the deeplink in the app which launched the application so as to fetch queryparams or any additional info from the deeplink if any, so as to perform some actions on click of a deeplink.
Usecase: assume an e-commerce application and the deeplink points to a product detail page,And deeplink contains the product id which can be used to fetch the product details from the server.
On a click of a deeplink the app will be launched and user will be navigated to that specific product detail page.
github-actions commentedon Aug 5, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.