Skip to content

Deep Link for posting on community.dev #18

Open

Description

@CharanMN7

Generate Deep Links for each event to share on the community.dev platform.

  • Figure out how to do this
  • For Android
  • For iOS

Activity

  1. added
    documentation
    enhancement
    on Oct 6, 2023
  2. CharanMN7 commented on Oct 8, 2023

    @CharanMN7
    Author

    Deep Links: Primer

    What are deep links?
    Deep Links are the links that open a certain screen in an application, when clicked.

    How do implement these in our application?
    In order to setup deep links, we need to setup things separately for Android & iOS.
    Why? Both these platforms have their own way of doing this. Even the Flutter community suggests us to do the same. Besides, they are the best and the most secure way to setup deep links.

    It is also recommended that we use Router for navigation but named routes are also fine.
    Once we have all the screens ready and the routes set-up, we can just move on to the platform specific set-up procedure.

    In case you're wondering how a deep link would look like, here is how it would look like:
    image

    For Android

    In Android, we use the Android App Links to handle Deep Links

    1. Configure the Android Manifest for the application to work with the Android App Links
    2. In order to be able to use links like the one shown above, we need to publish an assetlinks.json file on the same domain, as our links.

    To host the links on the same domain, we can just put the assetlinks.json file inside our Flutter application's web directory and host the web application through our domain. And, if the user is using Flutter web, they will be taken to the same destination on the web.

    For iOS

    coming soon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions