Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Need documentation about permissions. #9

Open
broccolism opened this issue Aug 6, 2021 · 2 comments
Open

Need documentation about permissions. #9

broccolism opened this issue Aug 6, 2021 · 2 comments

Comments

@broccolism
Copy link

Is your feature request related to a problem? Please describe.
First of all, thank you for such a great library which makes it much easier and faster to develop flutter app.
But when I tried to use this at the first time,
I couldn't find what kind of permissions should be allowed to make this library work properly.
Since the API document doesn't say anything about the permission except for some types of exceptions like PermissionDeniedException,
I had to figure it out by using another library, one by one.

Describe the solution you'd like
I hope the permission list to make image picker work on the device, both iOS and Android, would be added to API document.

Describe alternatives you've considered
I cannot think any alternatives. Let me know if anyone has better idea.

@rebink
Copy link

rebink commented Aug 17, 2021

To allow the following permissions in your Manifest:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

If your app targets Android 11 with compileSdk/targetSdk >= 30 then you will need to add this to the manifest (outside of the application block) in order to capture pictures with the device camera. Android documentation here:

<queries>
    <intent>
        <action android:name="android.media.action.IMAGE_CAPTURE" />
    </intent>
</queries>

@broccolism
Copy link
Author

@rebink
Hi, thanks for the comment.
But what I mean was that 'document' about this library should be updated to be including what you wrote.
I've already found the solution about the permission problem.
thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants