GDGVizag / NowInGoogle

https://docs.google.com/document/d/1b5UzQwPhyzbnRDw1pvG1CkygMdLGMGuGyvyznDiS4DI/edit?usp=sharing
MIT License
3 stars 0 forks source link

Deep Link for posting on community.dev #18

Open CharanMN7 opened 1 year ago

CharanMN7 commented 1 year ago

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

CharanMN7 commented 1 year ago

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...