permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.21k stars 1.44k forks source link

investigation: Android 11 permission changes #661

Closed hotchemi closed 3 years ago

hotchemi commented 4 years ago

We are going to investigate what we can/should do for the upcoming changes.

ref: https://developer.android.com/preview/privacy/permissions

mannodermaus commented 4 years ago

There may be some changes required for the background location permission. I am not familiar with the Android 10 model, but reading Joe Birch's article on what's new and upcoming in R, it looks like there have to be two separate requests for this particular permission. First, you ask for either Fine or Coarse permission and when granted, you ask again for the background permission. I have not validated this yet, but apparently the permission dialog would not show at all if you requested both at the same time. Users could probably have two annotated methods to do this, but maybe there is a better flow here.

The article for reference: https://joebirch.co/2020/02/21/exploring-the-android-11-developer-preview-permission-changes/

hotchemi commented 4 years ago

@mannodermaus Thx! I've gone through the article and my takeaways were,

Now checking more on https://developer.android.com/preview/privacy

hotchemi commented 3 years ago

Let me close the issue.

tayyabejaz commented 2 years ago

@hotchemi Have you added the Location Permission in the library?

PS I am using version 3.1.0 @mannodermaus