jfoclpf commented on issue #426:
URL: 
https://github.com/apache/cordova-plugin-file/issues/426#issuecomment-855271429


   Tell the user to allow the app to access all files is not a good practice,
   it poses potential security problems and it is exactly that which Google
   was trying to avoid with the new policies on Android 11.
   
   A sábado, 5/06/2021, 16:41, Joshua Eduardo González Ruíz <
   ***@***.***> escreveu:
   
   > Hello, I was facing a similar problem, when I needed to read a file from
   > the storage of an Android device, the plugin returns null in the contents
   > of the file.
   >
   > The reason for this is the "partial" permission implemented in Android 11,
   > although the user gives the storage permission this always stays in "only
   > multimedia content".
   >
   > So what I did was send the user to the settings section of the app and
   > tell them to change the storage permission to "allow access to all files".
   > And with that change I was already able to read the files in any directory
   > on the device on Android 11.
   >
   > Note:
   > You need to implement this in your config.xml for the storage permission
   > to work well on Android 11
   >
   > I hope and this will help you.
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > 
<https://github.com/apache/cordova-plugin-file/issues/426#issuecomment-855249720>,
   > or unsubscribe
   > 
<https://github.com/notifications/unsubscribe-auth/AA6M4DLMZZOLJK7STKAVVOLTRIZR7ANCNFSM4SAAWWGQ>
   > .
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to