Return

Flutter: Deep links and opening applications by QR code.

23. 03. 2023
CoreApp Technologies s.r.o.
mobile
interest

This article is focused on Flutter, deep links, and using QR codes on iOS devices. The article explains how to set up the Flutter application for iOS and how to set up the server part of the application to use deep links from the QR code.

Flutter: Deep links and opening applications by QR code.

Mobile or web applications can sometimes have functionalities, which can be good, but in the end, users don't know how to use them. This happened to one of our clients. At first , login to the Flutter application by QR code was a good idea, but users tried to scan the QR code from a system reader instead of a reader in the client’s application. Our client ordered an update of the application from us, where we resolved the problem with scanning the QR code.

How to set up deep links in Flutter apps?

Setting up deep links consists of several steps. One of the steps is a universal link, which we describe next. Open your Apple developer account and find the application's identifier. Enable Associated Domains.

Open Xcode with your project. In the tab Signing & Capabilities add the Capability called Associated Domains. Set a link to your application in the format applinks:domain.com. The domain.com is coded in QR code and the domain has to use the HTTPS protocol. This setting generates the file Runner.entitlements.

Set value FlutterDeepLinkingEnable to YES in file Runner/Info

We have to move now to the server part of the mobile application. Create a file named apple-app-site-association in the root folder of your web server or the hidden folder well-known. The file is in JSON format but without the .json suffix and looks like this:

{
  "applinks": {
      "apps": [],
      "details": [
      {
        "appID": "<TEAM_ID>.<BUNDLE_ID>",
        "paths": ["*"]
      }
    ]
  }
}

Verify if the file is available from a link in the browser. The file does not start working immediately. It usually takes a few hours for it to start working. 

If you are thinking about development of a mobile application, please contact us.

Have we got your interest or are you still unsure?
Contact us!

Other articles

What is the difference between Alpha and Beta testing?

What is the difference between Alpha and Beta testing?

19. 04. 2023
CoreApp Technologies s.r.o.
interest
testing

Alpha and Beta testing is one of the parts of development. The Alpha and beta testing is the final stage during the finishing of the software product before launching. What is the difference between Alpha and Beta testing? And who does the testing?

What is the IP address?

What is the IP address?

04. 04. 2023
CoreApp Technologies s.r.o.
interest

Do you know what the IP address means? How to use IP addresses? What types of IP addresses are there? What differences are between IP addresses in version IPv4 and IPv6?

Technologies in mobile application development

Technologies in mobile application development

24. 01. 2023
CoreApp Technologies s.r.o.
mobile
interest

There are two large players in the world of mobile operating systems, the first is Apple with iOS and the second is Google with Android. Which technologies can we use to develop mobile applications for your project?