Skip to content

Flutter web: url_launcher Plugin show blank page on dismiss #51461

@vazkir

Description

@vazkir

My Flutter PWA shows a blank screen when returning from an opened url with the url_launcher plugin. Kind of like the problem people have experienced back in 2017 on android: #13123

Eitherway, I am seeing the blank screen on return when I have added the Flutter web App to my Iphone homescreen. I also experience a similar issue when I visit the PWA's website in my browser (so when it's not added to the homescreen); It triggers a new tab and than opens the email application, and when done I return to the blank screen.

Steps to Reproduce

  1. Launch a share url on Flutter web like:
    await launch("mailto:?subject=TestSubject&body=emailBoday");

  2. Let the app open the url scheme, like mailto.

  3. Then hit return or cancel in that app, so you are returning the the PWA.

Expected results:
WhatsApp Image 2020-02-26 at 10 54 00 (1)

Actual results:
WhatsApp Image 2020-02-26 at 10 54 00

Other info

I also tested this on a Samsung J3, and the bug was not apparent. So it maybe Iphone related.

Thanks in advance for any help:)

Metadata

Metadata

Assignees

Labels

good first issueRelatively approachable for first-time contributorsp: url_launcherPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions