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.
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.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.