jamesmontemagno / MediaPlugin

Take & Pick Photos and Video Plugin for Xamarin and Windows
MIT License
712 stars 357 forks source link

On Android when calling `TakePhotoAsync()` storage permission is requested #812

Open Mikilll94 opened 4 years ago

Mikilll94 commented 4 years ago

When calling TakePhotoAsync() on Android Marshmallow or higher the system requests two permission: camera access and storage. Why this plugin requests for the storage permission? Storage permission is completely unnecessary when taking photos. Just the camera permission should be sufficient.

Bug Information

Version Number of Plugin: 4.0.1.5 Device Tested On: Android devices Version of VS: 16.4.5 Version of Xamarin: 4.4.0.991640

Steps to reproduce the Behavior

  1. Call TakePhotoAsync() on Android Marshmallow or higher.
  2. The system requests 2 permissions - first for camera access (CORRECT) and second for storage access (INCORRECT)

Expected Behavior

When calling TakePhotoAsync() only the camera permission should be requested.

Actual Behavior

When calling TakePhotoAsync() the camera and storage permissions are requested.

Code snippet

Just call TakePhotoAsync() with any params on Android Marshmallow or higher.

IngweLand commented 4 years ago

This plugin allows you to save photos to external folders. Thus, storage permission is required on android.

Mikilll94 commented 4 years ago

@IngweLand But I don't want to save photos to external folder in the device. I want just to retrieve a photo and use it in my app.