Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c5623aa
docs(url_launcher): note about encoding URIs
CoreyCole Oct 9, 2019
7fc9d3e
docs(url_launcher): consistent static types
CoreyCole Oct 9, 2019
eb362ba
docs: update to suggested URI usage
CoreyCole Dec 18, 2019
8951995
[url_launcher] docs: spacing
CoreyCole Jan 27, 2020
53566e3
[url_launcher] docs: fix typo
CoreyCole Jan 27, 2020
0826e8c
[url_launcher] docs: generic flutter url
CoreyCole Jan 27, 2020
c884717
[url_launcher] docs: explicitly import dart:core
CoreyCole Jan 27, 2020
303c310
Merge branch 'master' into patch-1
CoreyCole Jan 27, 2020
5509c58
[url_launcher] chore: upgrade version to 5.4.1+1 and prepend changelog
CoreyCole Jan 27, 2020
809d9fe
[url_launcher] fix: update to allowed version number
CoreyCole Jan 27, 2020
6a28275
[url_launcher] docs: add missing bullet point to changelog
CoreyCole Jan 28, 2020
5a1d471
[url_launcher] docs: add period to changelog statement
CoreyCole Jan 28, 2020
854f6a3
[url_launcher] fix: mailto example with path
CoreyCole Jan 29, 2020
cb6a89b
[url_launcher] docs: update readme with suggestions from @stuartmorgan
CoreyCole Feb 4, 2020
b719351
Merge branch 'patch-1' of github.com:CoreyCole/plugins into patch-1
CoreyCole Feb 4, 2020
cb15f23
[url_launcher] docs: fix merge issue back to userInfo and host format
CoreyCole Feb 4, 2020
c3b9c15
[url_launcher] docs: fix merge issue to path format
CoreyCole Feb 4, 2020
715fa56
Merge branch 'master' into patch-1
CoreyCole Jun 17, 2020
1cd6c49
[url_launcher] docs: bump version to 5.4.11 for the URL encoding docu…
CoreyCole Jun 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/url_launcher/url_launcher/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.4.11

* Add documentation in README suggesting how to properly encode urls with special characters.

## 5.4.10

* Post-v2 Android embedding cleanups.
Expand Down Expand Up @@ -68,7 +72,7 @@

## 5.2.3

Android: Use android.arch.lifecycle instead of androidx.lifecycle:lifecycle in `build.gradle` to support apps that has not been migrated to AndroidX.
* Android: Use android.arch.lifecycle instead of androidx.lifecycle:lifecycle in `build.gradle` to support apps that has not been migrated to AndroidX.

## 5.2.2

Expand Down
21 changes: 21 additions & 0 deletions packages/url_launcher/url_launcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ Common schemes supported by both iOS and Android:

More details can be found here for [iOS](https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html) and [Android](https://developer.android.com/guide/components/intents-common.html)

### Encoding URLs

URLs must be properly encoded, especially when including spaces or other special characters. This can be done using the [`Uri` class](https://api.dart.dev/stable/2.7.1/dart-core/Uri-class.html):
```dart
import 'dart:core';
import 'package:url_launcher/url_launcher.dart';

final Uri _emailLaunchUri = Uri(
scheme: 'mailto',
path: 'smith@example.com',
queryParameters: {
'subject': 'Example Subject & Symbols are allowed!'
}
);

// ...

// mailto:smith@example.com?subject=Example+Subject+%26+Symbols+are+allowed%21
launch(_emailLaunchUri.toString());
```

## Handling missing URL receivers

A particular mobile device may not be able to receive all supported URL schemes.
Expand Down
2 changes: 1 addition & 1 deletion packages/url_launcher/url_launcher/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: url_launcher
description: Flutter plugin for launching a URL on Android and iOS. Supports
web, phone, SMS, and email schemes.
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher
version: 5.4.10
version: 5.4.11

flutter:
plugin:
Expand Down