Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Android permission allowWhenAppInUse triggering inactive and resumed appLifeStateEvent #49

Open
razmik-gharibyan opened this issue Aug 26, 2020 · 0 comments

Comments

@razmik-gharibyan
Copy link

馃悰 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:

  • [+ ] 馃 Android
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant