How to choose where links open in your app
Video length 1:30English narration, English and Hinglish subtitles
Overview
Link Handling decides what happens when someone taps a link in your app: stay inside the app, open an in-app browser, or leave for the phone's browser. Rules are checked from top to bottom, so a few clear rules cover most sites.
The same page sets up deep links, so links to your domain in emails and messages open the app instead of the browser, plus your custom URL scheme and the long-press menu. On Android, changes to link rules reach installed apps the next time they open. For Shopify stores, product and collection links still need one more Shopify permission.
In this video you'll learn
- Decide where each kind of link opens
- Test an address against your link rules
- Set up deep links with assetlinks.json
- Add a custom URL scheme and long-press menu
Chapters
Link Handling decides where each link opens (inside the app, in an in-app browser or in the phone's browser) and sets up deep links, your URL scheme and the long-press menu.
Step by step
How link rules work
Rules are checked from top to bottom, and the first rule that matches decides where a link opens: Inside app, In-app browser or External browser. Drag a rule to change its order. My domain covers your own site, and All other links catches the rest.
Test and add rules
Type an address in Test a URL to see which rule matches it. Add rule creates your own rule, and Restore defaults brings back the starting set.
Windows and pop-ups
Auto new windows opens deeper pages in a new native window, so Back returns people to where they were. window.open behaviour decides where pop-ups opened by scripts go.
Set up deep links
Under Deep links & universal links, press Add domain for every host people use. Press Download assetlinks.json (also in Build & Download → Android signing), host the file at https://<your domain>/.well-known/assetlinks.json, then press Check again until the domain shows Verified.
Shopify product & collection links
Shopify publishes the verification file for your store, but AppSorcerer needs one more Shopify permission for it. Until that is approved, the status shows Needs permission and product links open the browser.
Custom URL scheme
Set a Scheme so links like yourapp://products/123 in emails, QR codes and other apps open that page in your app.
Long-press menu
Turn on Show a menu when people long-press a link, and choose its Actions: Copy link, Open in browser and Share.