You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/07/08 23:27:35 UTC

[GitHub] [cordova-plugin-camera] breautek commented on issue #611: Cannot use saveToPhotoAlbum: true on Android 10

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


   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.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org