You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/plugin/deep-linking.mdx
+60-11Lines changed: 60 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,8 +81,11 @@ Install the deep-link plugin to get started.
81
81
82
82
### Android
83
83
84
-
For [app links](https://developer.android.com/training/app-links#android-app-links), you need a server with a
85
-
`.well-known/assetlinks.json` endpoint that must return a text response in the given format:
84
+
There are two ways to open your app from links on Android:
85
+
86
+
1.**App Links (http/https + host, verified)**
87
+
For [app links](https://developer.android.com/training/app-links#android-app-links), you need a server with a
88
+
`.well-known/assetlinks.json` endpoint that must return a text response in the given format:
86
89
87
90
```json title=".well-known/assetlinks.json"
88
91
[
@@ -103,10 +106,16 @@ Where `$APP_BUNDLE_ID` is the value defined on [`tauri.conf.json > identifier`]
103
106
`$CERT_FINGERPRINT` is a list of SHA256 fingerprints of your app's signing certificates,
104
107
see [verify Android applinks] for more information.
105
108
109
+
2.**Custom URI schemes (no host required, no verification)**
110
+
For URIs like `myapp://...`, you can declare a custom scheme without hosting any files. Use the `scheme` field in the mobile configuration and omit the `host`.
111
+
106
112
### iOS
107
113
108
-
For [universal links], you need a server with a `.well-known/apple-app-site-association` endpoint that must return a JSON response
109
-
in the given format:
114
+
There are two ways to open your app from links on iOS:
115
+
116
+
1.**Universal Links (https + host, verified)**
117
+
For [universal links], you need a server with a `.well-known/apple-app-site-association` endpoint that must return a JSON response
See [applinks.details](https://developer.apple.com/documentation/bundleresources/applinks/details) for more information.
147
156
157
+
2.**Custom URI schemes (no host, no verification)**
158
+
For URIs like `myapp://...`, you can declare a custom scheme under mobile configuration with `"appLink": false` (or omit it). The plugin generates the appropriate `CFBundleURLTypes` entries in your app's Info.plist. No `.well-known` files or HTTPS host are needed.
159
+
148
160
### Desktop
149
161
150
162
On Linux and Windows deep links are delivered as a command line argument to a new app process.
@@ -187,16 +199,56 @@ and schemes registered at runtime must be manually checked using [`Env::args_os`
187
199
188
200
## Configuration
189
201
190
-
Under `tauri.conf.json > plugins > deep-link`, configure the domains (mobile) and schemes (desktop) you want to associate with your application:
202
+
Under `tauri.conf.json > plugins > deep-link`, configure mobile domains/schemes and desktop schemes you want to associate with your application.
0 commit comments