Open alexisGandar opened 9 months ago
On Android 10 and below, on cordova-plugin-file V8 and cordova-android V12 the permission request was not displayed to the user witch lead to an error when trying to write a file in the externalRootDirectory + '/Download' folder.
Permission not requested on Android 10 when targeting API 33 (#586)
This fix always ask for permission if needed on GetFile action. This allow to fix the bug.
I test on Android 10/11/12/13 that writing a file to externalRootDirectory + '/Download' works.
(platform)
(android)
Platforms affected
Motivation and Context
On Android 10 and below, on cordova-plugin-file V8 and cordova-android V12 the permission request was not displayed to the user witch lead to an error when trying to write a file in the externalRootDirectory + '/Download' folder.
Permission not requested on Android 10 when targeting API 33 (#586)
Description
This fix always ask for permission if needed on GetFile action. This allow to fix the bug.
Testing
I test on Android 10/11/12/13 that writing a file to externalRootDirectory + '/Download' works.
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)