Skip to content

url_launcher on Android does not support javascript #15316

@bhrose

Description

@bhrose

With forceWebView: true on Android, I'm getting a blank white page. This is the code I'm using:

  new RaisedButton(onPressed: _launchURL, child: new Text('Share your feedback'),),

_launchURL() async {
  const url = 'https://brianrose.typeform.com/to/NmGg1a';
  if (await canLaunch(url)) {
    await launch(url, forceWebView: true);
  } else {
    throw 'Could not launch $url';
  }

Without forceWebView: true, on Android the survey opens in a new Chrome window and works as intended, and on iOS it opens in WebView also as intended. But with forceWebView: true, my Android app opens a blank white screen. Is it a permissions issue?

Expected: Open survey in WebView.
Actual: App opens a blank white screen.
Device: Pixel XL running Android 8.1.0

My app is at https://play.google.com/store/apps/details?id=com.brianrose.botornot and the survey appears on the final screen (ScorePage).

Discussion on Google Groups at https://groups.google.com/forum/#!topic/flutter-dev/9orHejC4sA8

Metadata

Metadata

Assignees

Labels

packageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions