flutter-package / images_picker

Flutter plugin for selecting images/videos from the Android and iOS gallery, and taking pictures/videos with the camera
MIT License
65 stars 85 forks source link

Update Permission for Android 13 #92

Open DucLongDTH opened 2 years ago

DucLongDTH commented 2 years ago

Hi , can you update lib for android 13 have permission read and write data Screenshot_1663666521 I also allow Screenshot_1663666582 ed all the permissions but when back to my app there is no change !

Starkm12 commented 1 year ago

Any update on this?

An5675 commented 1 year ago

Hi, the problem is not strictly related to the package (images_picker), but it is a modification of the permissions Android 13

source 1: https://developer.android.com/about/versions/13/behavior-changes-13

source 2: https://issuetracker.google.com/issues/228868661

I solved it by adding these permissions to .. \ android \ app \ src \ main \ AndroidManifest.xml

and modifying .. \ android \ app \ build.gradle

targetSdkVersion 32 instead of -> targetSdkVersion 33 compileSdkVersion 33

DucLongDTH commented 1 year ago

Any update on this?

yah, not yet, i fixed the native library but i can't implement into my fork. The problem appears in a native library when it is too old

DucLongDTH commented 1 year ago

Hi, the problem is not strictly related to the package (images_picker), but it is a modification of the permissions Android 13

source 1: https://developer.android.com/about/versions/13/behavior-changes-13

source 2: https://issuetracker.google.com/issues/228868661

I solved it by adding these permissions to .. \ android \ app \ src \ main \ AndroidManifest.xml

and modifying .. \ android \ app \ build.gradle

targetSdkVersion 32 instead of -> targetSdkVersion 33 compileSdkVersion 33

yes, i already do it but btw I used another library and i can set to targetSdkVersion 33 compileSdkVersion 33 ^^

leonardobenedeti commented 1 year ago

@DucLongDTH it is possible for you submit a pull request or publish this changes to another pub ?

DucLongDTH commented 1 year ago

@DucLongDTH it is possible for you submit a pull request or publish this changes to another pub ?

@leonardobenedeti i think this pub libary not updated or updated in this lib: https://pub.dev/packages/image_pickers. this support android 13

lamlengend98 commented 11 months ago

@DucLongDTH how can I fix this in the native?

LongND-NTQ commented 11 months ago

@DucLongDTH how can I fix this in the native?

Cannot update in native code, you can use package image_pickers, the update version of this package

roshansrashtasoft commented 6 months ago

Hi, the problem is not strictly related to the package (images_picker), but it is a modification of the permissions Android 13

source 1: https://developer.android.com/about/versions/13/behavior-changes-13

source 2: https://issuetracker.google.com/issues/228868661

I solved it by adding these permissions to .. \ android \ app \ src \ main \ AndroidManifest.xml

and modifying .. \ android \ app \ build.gradle

targetSdkVersion 32 instead of -> targetSdkVersion 33 compileSdkVersion 33

@An5675 I am trying but it is not working my project ?

Any other solution ?