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

onRequestPermissionsResult not called if user presses HOME button #344

Open
gregko opened this issue Feb 21, 2022 · 0 comments
Open

onRequestPermissionsResult not called if user presses HOME button #344

gregko opened this issue Feb 21, 2022 · 0 comments

Comments

@gregko
Copy link

gregko commented Feb 21, 2022

With an EasyPermissions.requestPermissions() call, if the user presses the phone's HOME button instead of continuing on the initial message prompt, or during the system prompt to grant or refuse the permission, the onRequestPermissionResult() is never called, and also there is no call to onActivityResult(), so the activity waits in background forever for this result. I need to finish() this unnecessary activity (else much later it may cause an ANR), but there is no way of knowing what happened.

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