Trouble with Android 11 and a new option for permissions "Only this time/Ask every time"

Author: slobodanantonijevicCreated Sep 4, 2020Updated Jun 30, 2022

The problem is that with new Android 11 there is a new option (apart from "always" and "only in app") for permissions (eg. Location) which is "Only this time" or "Ask every time" depending on which screen you get it. The thing is the app with this set has to ask permission every time the user starts a new session in the app. However your library always returns permission as granted for this option chosen. While the permission should be reset every time the app is restarted.

  • Device: Pixel 4
  • OS version: Androi 11 Preview