once10301 / permission

Other
66 stars 58 forks source link

image_picker permission explicit inandroid #20

Closed trompetin17 closed 5 years ago

trompetin17 commented 5 years ago

Hi, I want to share this strange behavior in android when you use image_picker. This behavior happens the first time I use image_picker in a fresh install. the library ask about permission, but nothing happens even if you say "allow", I need to restart the app, and then everything works fine.

I already have External Storage permission in my android manifest. Also, I look up the source code and find something interesting here:

https://github.com/flutter/plugins/blob/afa2f0877a10c7f9f6898a0107da07d9ce90b670/packages/image_picker/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java#L194

It asks for permission and then codes returns and the flutter didn't receive any notice from the plugin.

once10301 commented 5 years ago

I do not understand what you mean?

once10301 commented 5 years ago

I think you went the wrong place. image_picker is not my project.