Flutter url_launcher Unhandled Exception: Could not launch youtube url (Caused by canLaunch)

Starting from API30 (Android 11), your Android app has to list all apps it interacts with.

You can add:

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>

in your android manifest to bypass it or specifically list them.

For more info:
https://developer.android.com/about/versions/11/privacy/package-visibility

Leave a Comment