-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[url_launcher] Android API 34 support #4660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
3bffd22
b9ba682
1bb7a9e
9838a5b
8d31e6f
e56adf3
78a3749
1e190ca
6c8b98f
26853fd
a3d3402
7ec5201
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,4 +20,27 @@ void main() { | |
| // sms:, tel:, and mailto: links may not be openable on every device, so | ||
| // aren't tested here. | ||
| }); | ||
|
|
||
| testWidgets('launch and close', (WidgetTester _) async { | ||
| final UrlLauncherPlatform launcher = UrlLauncherPlatform.instance; | ||
|
|
||
| // Launch a url then close. | ||
| expect( | ||
| await launcher.launch('https://flutter.dev', | ||
| useSafariVC: true, | ||
| useWebView: true, | ||
| enableJavaScript: false, | ||
| enableDomStorage: false, | ||
| universalLinksOnly: false, | ||
| headers: <String, String>{'my_header_key': 'my_header_value'}), | ||
reidbaker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| true); | ||
| // Allow time for page to load. | ||
| await Future<void>.delayed(const Duration(seconds: 3)); | ||
reidbaker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| await launcher.closeWebView(); | ||
| // Delay required to catch android side crashes in onDestroy | ||
| await Future<void>.delayed(const Duration(seconds: 3)); | ||
|
||
|
|
||
| // sms:, tel:, and mailto: links may not be openable on every device, so | ||
| // aren't tested here. | ||
reidbaker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.