You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Rubén Panadero (JIRA)" <ji...@apache.org> on 2018/01/15 12:02:00 UTC
[jira] [Created] (CB-13781) Error requesting permission on Android
8
Rubén Panadero created CB-13781:
-----------------------------------
Summary: Error requesting permission on Android 8
Key: CB-13781
URL: https://issues.apache.org/jira/browse/CB-13781
Project: Apache Cordova
Issue Type: Bug
Components: cordova-plugin-camera
Reporter: Rubén Panadero
Google has changed how an android application must request permissions on Android 8. In fact, it is considered as fix by Google due to a wrong behavior on previous versions.
Related documentation:
https://developer.android.com/about/versions/oreo/android-8.0-changes.html#rmp
This change made by Google has affected the cordova-camera-plugin. To save a photo in Photo Album, the plugin just requests the READ_EXTERNAL_STORAGE permission right now, but that is not enough on Android 8 because the plugin writes the photo file into Pictures folder so it has to request the writing permission, which is missing, as well.
To sum up, if the plugin has to save a photo in the photo album, this one has to request both READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org