fluttercandies / flutter_photo_manager

A Flutter plugin that provides images, videos, and audio abstraction management APIs without interface integration, available on Android, iOS, macOS and OpenHarmony.
https://pub.dev/packages/photo_manager
Apache License 2.0
699 stars 318 forks source link

[Feature request] Add permanently denied status for permission checking #1211

Open Ne0n11 opened 4 weeks ago

Ne0n11 commented 4 weeks ago

Platforms

Android, iOS

Description

Right now when the permission could be requested up to 2 times on Android, and afterwards no dialog would be shown - cause it's status becomes permanentlyDenied. And there is no good mechanism to handle it.

Why

  1. To correctly determine when user has permanently denied access to gallery - to show him info message, that he can undo that in settings.
AlexV525 commented 3 weeks ago

Could you show your message every time the permission result returns denied? There is no big difference between the first and the second.

Ne0n11 commented 2 weeks ago

Could you show your message every time the permission result returns denied? There is no big difference between the first and the second.

First and second - yes. But if you deny 2 times, you no longer would see system message with selecting the type of permission. And when this is the deal - would be great if plugin returns permanentlyDenied status.

AlexV525 commented 2 weeks ago

But if you deny 2 times, you no longer would see system message with selecting the type of permission.

Yeah exactly.

Labeling for further investigations.