Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/app lancher check for external app #1590

Merged
merged 6 commits into from
Jan 3, 2023

Conversation

peyman-mohtashami
Copy link
Contributor

Fix issue #1588

@peyman-mohtashami
Copy link
Contributor Author

Starting from API30 (Android 11), your Android app has to list all apps it interacts with.
We should add this to manifest:

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

https://stackoverflow.com/questions/63625023/flutter-url-launcher-unhandled-exception-could-not-launch-youtube-url-caused-b

@mpgxvii
Copy link
Member

mpgxvii commented Nov 30, 2022

Starting from API30 (Android 11), your Android app has to list all apps it interacts with. We should add this to manifest:

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

https://stackoverflow.com/questions/63625023/flutter-url-launcher-unhandled-exception-could-not-launch-youtube-url-caused-b

Oh okay yes, we can add this by adding to the config.xml file:

        <config-file parent="/manifest/" target="app/src/main/AndroidManifest.xml">
            <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
        </config-file>

But it seems Google is quite strict with this: https://support.google.com/googleplay/android-developer/answer/10158779#zippy=%2Cpermitted-uses-of-the-query-all-packages-permission. But I think this should fall under the permitted uses?

Copy link
Member

@mpgxvii mpgxvii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks.

@mpgxvii mpgxvii merged commit 08c0563 into dev Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants