Skip to content

Document how to add deep links into an app #11607

Closed

Description

@mit-mit

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.

Activity

  1. added this to the 3: Current Milestone milestone on Aug 14, 2017
  2. eseidelGoogle commented on Aug 14, 2017

    @eseidelGoogle
    Contributor

    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.

  3. sethladd commented on Aug 14, 2017

    @sethladd
    Contributor

    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.

  4. mit-mit commented on Aug 15, 2017

    @mit-mit
    MemberAuthor

    This tracks docs + simple example of "basic" deep links, e.g. the ability to redirect app: or http: 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.

  5. Hixie commented on Aug 15, 2017

    @Hixie
    Contributor

    This is probably blocked on #11490 and the related bugs, since those will change how this will work.

  6. sethladd commented on Aug 15, 2017

    @sethladd
    Contributor

    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.

  7. marwan-at-work commented on Dec 7, 2017

    @marwan-at-work

    @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 get my-link or key=val from the dart side. Thanks!

  8. 40 remaining items

  9. kendall-lu commented on Mar 26, 2020

    @kendall-lu

    would love to hear an update about this

  10. Bricktheworld commented on Mar 27, 2020

    @Bricktheworld

    Umm, is this possible at all?

  11. csells commented on Apr 13, 2020

    @csells
    Contributor

    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.

  12. added
    P2Important issues not at the top of the work list
    on May 29, 2020
  13. removed this from the milestone on Jun 2, 2020
  14. added
    customer: crowdAffects or could affect many people, though not necessarily a specific customer.
    on Jul 15, 2020
  15. removed this from the milestone on Aug 17, 2020
  16. HansMuller commented on Sep 10, 2020

    @HansMuller
    Contributor
  17. chunhtai commented on Feb 12, 2021

    @chunhtai
    Contributor
  18. maheshj01 commented on Feb 14, 2021

    @maheshj01
    Member

    We added a document for deeplinking https://flutter.dev/docs/development/ui/navigation/deep-linking, closing this issue

    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.

  19. github-actions commented on Aug 5, 2021

    @github-actions

    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 -v and a minimal reproduction of the issue.

  20. locked as resolved and limited conversation to collaborators on Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.customer: posse (eap)f: routesNavigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions