Skip to content

Commit 7173380

Browse files
authored
[url_launcher] Update readme for URL schemes on iOS (flutter#3252)
1 parent 8621694 commit 7173380

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

packages/url_launcher/url_launcher/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 6.0.3
2+
3+
* Updat README notes about URL schemes on iOS
4+
15
## 6.0.2
26

37
* Update platform_plugin_interface version requirement.

packages/url_launcher/url_launcher/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ iOS, Android, web, Windows, macOS, and Linux.
88
## Usage
99
To use this plugin, add `url_launcher` as a [dependency in your pubspec.yaml file](https://flutter.dev/platform-plugins/).
1010

11+
## Installation
12+
13+
### iOS
14+
Add any URL schemes passed to `canLaunch` as `LSApplicationQueriesSchemes` entries in your Info.plist file.
15+
16+
Example:
17+
```
18+
<key>LSApplicationQueriesSchemes</key>
19+
<array>
20+
<string>https</string>
21+
<string>http</string>
22+
</array>
23+
```
24+
25+
See [`-[UIApplication canOpenURL:]`](https://developer.apple.com/documentation/uikit/uiapplication/1622952-canopenurl) for more details.
26+
1127
### Example
1228

1329
``` dart
@@ -97,4 +113,4 @@ By default, Android opens up a browser when handling URLs. You can pass
97113
If you do this for a URL of a page containing JavaScript, make sure to pass in
98114
`enableJavaScript: true`, or else the launch method will not work properly. On
99115
iOS, the default behavior is to open all web URLs within the app. Everything
100-
else is redirected to the app handler.
116+
else is redirected to the app handler.

packages/url_launcher/url_launcher/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: url_launcher
22
description: Flutter plugin for launching a URL. Supports
33
web, phone, SMS, and email schemes.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher
5-
version: 6.0.2
5+
version: 6.0.3
66

77
flutter:
88
plugin:

0 commit comments

Comments
 (0)