image_pickers icon indicating copy to clipboard operation
image_pickers copied to clipboard

Audio permission request

Open g-30 opened this issue 4 years ago • 5 comments

The library requests audio permission even if I set photo-only picker mode: galleryMode: GalleryMode.image.

Is it possible to ask for only camera & gallery permissions if GalleryMode.image mode is set?

g-30 avatar Jul 16 '20 15:07 g-30

I have the same issue. @lisen87 @cuixiaocun if you can guide me how to fix it, I will submit a pull request.

我有同樣的問題。 @ lisen87 @cuixiaocun如果您可以指導我如何解決它,我將提交拉取請求。

yanivshaked avatar Aug 12 '20 11:08 yanivshaked

@yanivshaked take a look at my fork here. I disabled audio permission request in my last commit.

g-30 avatar Aug 13 '20 08:08 g-30

Cool, thanks!

yanivshaked avatar Aug 13 '20 08:08 yanivshaked

Hi @Smagold, Actually, your changes will totally eliminate the request for microphone, even if video camera is activated. I have changed the code so that only the necessary permissions are requested, please look at the following pull request: https://github.com/lisen87/image_pickers/pull/44

Let me know what you think. Thanks!

yanivshaked avatar Aug 13 '20 10:08 yanivshaked

新版本已经处理。

lisen87 avatar Oct 14 '20 07:10 lisen87