flutter_wechat_assets_picker icon indicating copy to clipboard operation
flutter_wechat_assets_picker copied to clipboard

[BUG] asset picker does not work without rights explicitely removed by Google (Android 15)

Open pognibene opened this issue 10 months ago • 8 comments

Describe the bug Google has sent me a message asking explicitly to remove the permissions:

<uses-permission android:name="android.permission.READ_MEDIA_IMAGE"/> 
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>

I had to comply as they just removed my app from the store without any further comment. Now I'm trying to develop and run the app against Android 15 (emulator) and the picker just fails with this error:

Bad state: Permission state error with PermissionState.denied.

It works though if I add back the permissions - which is not allowed by Google. In other words : it looks like the package just can't be used at least on Android 15.

How to reproduce Remove or comment the permissions :

<uses-permission android:name="android.permission.READ_MEDIA_IMAGE"/> 
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>

and launching the picker will fail with the error "Bad state: Permission state error with PermissionState.denied."

Steps to reproduce the behavior:

Expected behavior The picker should be able to work without these permissions, and/or ask them dynamically only when required.

Screenshots (If contains)

Version information

  • Device: Emulator Android 15 Pixel 6 with 16kb pages
  • OS: Android 15
  • Package Version: 9.5.0
  • Flutter Version: 3.29.0

Additional context Output of Flutter doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.29.0, on TUXEDO OS 6.11.0-109018-tuxedo, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [✓] Chrome - develop for the web [✗] Linux toolchain - develop for Linux desktop ✗ ninja is required for Linux development. It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases ✗ GTK 3.0 development libraries are required for Linux development. They are likely available from your distribution (e.g.: apt install libgtk-3-dev) [✓] Android Studio (version 2024.2) [✓] VS Code (version 1.98.0) [✓] Connected device (3 available) [✓] Network resources

pognibene avatar Mar 08 '25 09:03 pognibene

yes ,google play 's new policy

lfclfc avatar Mar 11 '25 10:03 lfclfc

remove please

lfclfc avatar Mar 11 '25 10:03 lfclfc

Any update on this?. Im also having this problem. Google asking to remove the permissions. But Im using this library.

pumpking135 avatar May 27 '25 00:05 pumpking135

I no longer use this library.😂😂

---Original--- From: @.> Date: Tue, May 27, 2025 08:10 AM To: @.>; Cc: @.@.>; Subject: Re: [fluttercandies/flutter_wechat_assets_picker] [BUG] asset pickerdoes not work without rights explicitely removed by Google (Android 15) (Issue#684)

pumpking135 left a comment (fluttercandies/flutter_wechat_assets_picker#684)

Any update on this?. Im also having this problem. Google asking to remove the permissions. But Im using this library.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

lfclfc avatar May 29 '25 03:05 lfclfc

Unfortunately, I had to stop using this library to comply with Google new constraints. Sad, it's much better than the native pickers :-(

pognibene avatar May 29 '25 06:05 pognibene

Update: Picking a single asset from Android is a valid path, but we still don't know if it's possible on iOS/macOS. We will update once we confirm this can be implemented.

AlexV525 avatar Sep 28 '25 18:09 AlexV525

any updates on this?, my app is also rejected from play store. please fix this asap

ZoftPranav avatar Oct 01 '25 14:10 ZoftPranav

+1

tangbing avatar Dec 09 '25 01:12 tangbing