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

Android permission allowWhenAppInUse triggering inactive and resumed appLifeStateEvent

Open razmik-gharibyan opened this issue 5 years ago • 0 comments
trafficstars

🐛 Bug Report

My application retrieving user location data every 3 seconds. On Android when i choose permission as allowAlways everything works ok. But if i choose allowWhenAppInUse permission, it asks same requestPermission dialog everytime app fetches location (ie every 3 seconds), and if i further press allowWhenAppInUseAndDoNotAskAgain , then app lifecycle state starts to constantly change from inactive to resumed everytime location is fetched. Inactive state can be reached when app have another activity ontop of it, so i assume that requestPermission dialog is somehow showing and poping quickly every 3 second , and it triggers app lifecycle event to change to inactive then to resume and again same cycle.

Version: 3.0.0 +1

Platform:

  • [+ ] :robot: Android

razmik-gharibyan avatar Aug 26 '20 15:08 razmik-gharibyan