flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

[Android] Support new permissions for Android 13 (API 33)

Open simonpham opened this issue 2 years ago • 5 comments

🚀 Feature Requests

Since Android 13, there are many new permissions introduced. We will need to update to support it all.

There are 22 new permissions. Hence I list the most important ones (likely) image

Ref:

  • https://developer.android.com/reference/android/Manifest.permission
  • https://developer.android.com/about/versions/13/features

Platforms affected (mark all that apply)

  • [ ] :iphone: iOS
  • [x] :robot: Android

simonpham avatar Jun 23 '22 04:06 simonpham

I have a question. If we update the package to version 10.0.0, and upgrade sdk version to 33, does this mean our users with android phones with version 12 and less won't be able to use the app? Or is it backwards compatible with older OS too?

aytunch avatar Jun 29 '22 13:06 aytunch

@aytunch the app will continue to work as usual on older Android versions

alex-sandri avatar Jul 05 '22 14:07 alex-sandri

SCHEDULE_EXACT_ALARM is automatically granted and declared in the manifest, but we can check if it's enabled since users can disable it in the "special app access" screen. I think the one we need to request now is USE_EXACT_ALARM?

ArmandoJimenezOS avatar Jul 13 '22 20:07 ArmandoJimenezOS

Any plans for this? Android 13 is already out

armandojimenez avatar Aug 30 '22 01:08 armandojimenez

What is costing you to not merge the pull request?

alexmercerind avatar Sep 05 '22 16:09 alexmercerind

The NEARBY_WIFI_DEVICES permission is now supported as my PR's are merged!

YannickMaljaars avatar Oct 06 '22 08:10 YannickMaljaars

SCHEDULE_EXACT_ALARM and the media permissions: READ_MEDIA_IMAGES, READ_MEDIA_VIDEOS and READ_MEDIA_AUDIO should also be supported as of my recent PR's for these have been merged!

For reference: PR 941 PR 934 PR 933

YannickMaljaars avatar Oct 19 '22 09:10 YannickMaljaars

Since all requested permissions are supported, I will close this issue. If anyone have any request, please re-open or just create a new issue.

Thank you for your contribution! @YannickMaljaars @alex-sandri

simonpham avatar Oct 19 '22 10:10 simonpham