Flutter Navigator 2.0

Nov 8 2022 · Dart 2.17.3, Flutter 3.0.2, Android Studio 2020.3

Part 4: Deep Links & Web Urls

19. Setup Deep Links

Episode complete

Play next episode

About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 18. Learn Deep Links Next episode: 20. Create a Navigation State Object

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

Now let us start by setting up Deep Links on both of our platforms. To set up the Deep Link in Android and iOS we need to add some metadata attacks in respect to platform. So let us start with the iOS first. Open the Info.plist file that is present under iOS runner directory. This is called as Property List which defines the properties of our app behavior. This is the same file where we add users permission when app asks for permission, let's say for location or photos. This file consists of key value pair data. We're going to add few key value pair data which will enable Deep Linking for iOS. Each key is a parameter and we pass the value for that parameter. First, we have to enable Flutter Deep Linking. So we pass a Flatter Deep Linking Enabled key and the value you pass is TRUE. The CF Bundle URL name is a unique URL that distinguishes our app from other in the same scheme. And you can pass your domain, or if you do not have any domain, Flutter, generally passes example.com. The CF bundle URL scheme is a URL scheme that we pass as a string value. (No audio) This is it for the iOS setup. Now let us start our Android application setup. Open Android Manifest XML, which is located at Android app, src, main, AndroidManifest.xml file. The Android Manifest XML is just like the Info.plist that we saw in our iOS project. This has all these settings of our Android project. So scroll down to place where you can see priority tag is ending. So just above the place where the priority tag is ending write (no audio) Flutter Deep Linking settings. We are passing the key value pair to our Android app. First, we enabled the Deep Linking in Flutter by setting the value to TRUE and then we passed the scheme and id. These are the only settings that we have to do to enable Deep Linking in Android and iOS part.