Introduction
Learn how to use Smler to create deep links for your mobile app (with native support for React Native, iOS, and Android).
With deep links, your users get the best available experience for the platform they open your link on. If a user opens a Deep Link on iOS or Android, they can be taken directly to the linked content in your native app. If a user opens the same Deep Link in a desktop browser, they can be taken to the equivalent content on your website.
Step 1: Register a custom domain
Before you can create deep links, you need to configure your deep link custom domain in smler. This involves adding a custom domain that will be used for your deep links and configuring your deep link configuration files
Add a custom domain
First, you’ll need to add a custom domain to your Dub workspace. Navigate to your workspace domain settings and click add domain.
You can use a domain you already own and point it's cname to smler.in and start using it
Set up your deep link configuration files
Once you’ve set up your custom domain, you’ll need to upload your deep link configuration file content on our server. Smler will host these files and serve it to android and iOS AASA when they request it. This configuration is required for auto verifying of domain and deep link to work
You can upload these assets by navigating to differed link section in smler.
iOS (apple-app-site-association)
For iOS apps, upload your Apple App Site Association file to enable iOS deep links
Android (assetlinks.json)
For Android apps, upload your AssetLinks file to enable Android deep links:
Verify that your configuration files are set up correctly
Once you’ve set up your deep link configuration files, you can go to their respective URLs to verify that they’ve been configured correctly:
iOS: yourdomain.link/.well-known/apple-app-site-association
(example)
Android: yourdomain.link/.well-known/assetlinks.json
(example)
Once, the content is updated you can verify the content by visiting the url specified in the page. Once, both links are visible you can proceed to next step