Skip to content

url_launcher not closing in Android when in browser mode (not webview) #44058

@BirdyF

Description

@BirdyF

Steps to Reproduce

  1. Use url_launch to call an Oauth2 procedure (in my case Strava).
  2. Works well when forceWebView is set to true
  3. Does not return to the app when forWebView is set to false (launching browser instead of webview)

launch(reqAuth, forceWebView: false, forceSafariVC: true, enableJavaScript: true);

After the authentication process (in my case Google called from Strava screen), the browser screen stays empty on the top of the app screen.

It is working on iOS 13 and lower, I have this problem only on Android.

I dont think it is related to this specific version 5.2.5 of url_launcher because I had seen the same problem in the past.

Not sure if it is a bug in url_launcher or if it is a problem related to the callback uri settings
In my case I only put "localhost" in the call back domain in Strava app setup as mentioned in their documentation.

I can provide details to reproduce the problem on my lib. https://github.com/BirdyF/strava_flutter where there is example app.

Target Platform:
Target OS version/browser: Android 9.0
Devices: Tested only on physical device

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions