pwlin / cordova-plugin-file-opener2

A File Opener Plugin for Cordova
MIT License
314 stars 583 forks source link

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

Closed surabhi2789 closed 1 year ago

surabhi2789 commented 3 years ago

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

WuglyakBolgoink commented 3 years ago

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

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

this is not enough information

cinnamon-doge commented 3 years ago

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 commented 1 year ago

Duplicate of #310