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

Migrating to Target 30(Android Q) , plugin is not working #311

Closed
surabhi2789 opened this issue Oct 28, 2020 · 3 comments
Closed

Migrating to Target 30(Android Q) , plugin is not working #311

surabhi2789 opened this issue Oct 28, 2020 · 3 comments

Comments

@surabhi2789
Copy link

On Migrating to target 30 and making requestlegacy false plugin stopped working.
Please provide support for same.

@WuglyakBolgoink
Copy link

WuglyakBolgoink commented Nov 18, 2020

@surabhi2789 are u installed cordova-plugin-androidx-adapter plugin?

which cordova, cordova-{platforms} versions you have?

this is not enough information

@cinnamon-doge
Copy link

cinnamon-doge commented May 5, 2021

At the moment the plugin seems to need requestLegacyExternalStorage=true to function on Android 11 devices. However, according to Google, requestLegacyExternalStorage is not a solution starting today (May 5 2021):

We've detected that your app contains the requestLegacyExternalStorage flag in the manifest file of one or more of your app bundles or APKs.

Developers with apps on devices running Android 11+ must use scoped storage to give users better access control over their device storage. To release your app on Android 11 or newer after 5 May, you must either:

Update your app to use more privacy-friendly best practices, such as the storage access framework or Media Store API
Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE) permission in the manifest file, and complete the All files access permission declaration in Play Console from 5 May
Remove the All files access permission from your app entirely

For apps targeting Android 11, the requestLegacyExternalStorage flag will be ignored. You must use the All files access permission to retain broad access.

Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won't be able to publish updates.

@shnist
Copy link
Collaborator

shnist commented Jan 31, 2023

Duplicate of #310

@shnist shnist marked this as a duplicate of #310 Jan 31, 2023
@shnist shnist closed this as completed Jan 31, 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

No branches or pull requests

4 participants