Search code examples
flutterflutter-layoutflutter-dependenciesflutter-web

I Cant Open Flutter URL Via URL Launcher


My Launcher is not working ! launch (overwitted).. What's the problem here?

enter image description here


Solution

  • If you are trying out the URL launcher in Android and the device API is 30+, try adding the query intent outside of the application tag in the Android Manifest.

    <queries>
      <intent>
        <action android:name="android.intent.action.VIEW" />
        <data android:scheme="https" />
      </intent>
    </queries>
    

    Note: Use a stable Gradle version greater than 4 and update the studio to the latest version.

    You can refer to: https://pub.dev/packages/url_launcher#android