AleFons commented on issue #611:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/611#issuecomment-658198914


   > Looks like API 29 requires [Scoped 
Locations](https://developer.android.com/about/versions/10/privacy/changes#scoped-storage)
   > 
   > There are two current workarounds:
   > 
   > 1. Reduce the target sdk to 28, which can be done via the 
`android-targetSdkVersion` preference.
   > 2. Use the 
[requestLegacyExternalStorage](https://developer.android.com/preview/privacy/storage#scoped-storage)
 flag. Which can be added using the `<edit-config>`. This flag requires you to 
target/compile for API 29 (the default in `cordova-android@9`)
   > 
   > I'm not familiar with this plugin's codebase, but it looks like 
`MediaStore` is already used, and that's what the Android docs suggest that we 
need to use. So further investigation is going to be required to determine what 
the actual problem is.
   > 
   > > The plugin instead throws an error on Android 10.
   > 
   > It would be nice to know exactly what that error is, and perhaps 
stacktrace.
   
   I had white screen issues when trying to use that flag.


----------------------------------------------------------------
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