@@ -43,55 +43,47 @@ See the example app for more complex examples.
4343## Configuration
4444
4545### iOS
46- Add any URL schemes passed to ` canLaunchUrl ` as ` LSApplicationQueriesSchemes ` entries in your Info.plist file.
46+ Add any URL schemes passed to ` canLaunchUrl ` as ` LSApplicationQueriesSchemes `
47+ entries in your Info.plist file, otherwise it will return false.
4748
4849Example:
4950``` xml
5051<key >LSApplicationQueriesSchemes</key >
5152<array >
52- <string >https </string >
53- <string >http </string >
53+ <string >sms </string >
54+ <string >tel </string >
5455</array >
5556```
5657
5758See [ ` -[UIApplication canOpenURL:] ` ] ( https://developer.apple.com/documentation/uikit/uiapplication/1622952-canopenurl ) for more details.
5859
5960### Android
6061
61- Starting from API 30 Android requires package visibility configuration in your
62- ` AndroidManifest.xml ` otherwise ` canLaunchUrl ` will return ` false ` . A ` <queries> `
62+ Add any URL schemes passed to ` canLaunchUrl ` as ` <queries> ` entries in your
63+ ` AndroidManifest.xml ` , otherwise it will return false in most cases starting
64+ on Android 11 (API 30) or higher. A ` <queries> `
6365element must be added to your manifest as a child of the root element.
6466
65- The snippet below shows an example for an application that uses ` https ` , ` tel ` ,
66- and ` mailto ` URLs with ` url_launcher ` . See
67- [ the Android documentation] ( https://developer.android.com/training/package-visibility/use-cases )
68- for examples of other queries.
69-
67+ Example:
7068``` xml
7169<queries >
72- <!-- If your app opens https URLs -->
70+ <!-- If your app checks for SMS support -->
7371 <intent >
7472 <action android : name =" android.intent.action.VIEW" />
75- <data android : scheme =" https " />
73+ <data android : scheme =" sms " />
7674 </intent >
77- <!-- If your app makes calls -->
75+ <!-- If your app checks for call support -->
7876 <intent >
79- <action android : name =" android.intent.action.DIAL " />
77+ <action android : name =" android.intent.action.VIEW " />
8078 <data android : scheme =" tel" />
8179 </intent >
82- <!-- If your sends SMS messages -->
83- <intent >
84- <action android : name =" android.intent.action.SENDTO" />
85- <data android : scheme =" smsto" />
86- </intent >
87- <!-- If your app sends emails -->
88- <intent >
89- <action android : name =" android.intent.action.SEND" />
90- <data android : mimeType =" */*" />
91- </intent >
9280</queries >
9381```
9482
83+ See
84+ [ the Android documentation] ( https://developer.android.com/training/package-visibility/use-cases )
85+ for examples of other queries.
86+
9587## Supported URL schemes
9688
9789The provided URL is passed directly to the host platform for handling. The
0 commit comments