Closed burekas7 closed 4 years ago
I solved the problem with adding bellow code "token.continuePermissionRequest();"
`
@Override public void onPermissionRationaleShouldBeShown(List
token.continuePermissionRequest();
showSettingsDialog();
}
`
This behavior is described in our README and the Android documentation for runtime permissions and we are just bypassing it so that users can decide what to do.
Background:
Scenarios:
[OK] On the first time the app is running, Location is disabled, the dialog is shown up (onPermissionsChecked is activate and confirm the dialog does the work)
[OK] In the second time opening the app, Location is already enabled, dialog isn't shown up as it should be, and everything is ok.
[The problem] While the app is still running and I turn off the Location permission, when checking the permissions the "onPermissionRationaleShouldBeShown" is activate. a. Why the dialog isn't shown up again? b. Why it goes to "onPermissionRationaleShouldBeShown" callback?
[Still relates to the problem] In this callback I'm opening the permissions screen of my app, there I'm turn on the Location permission, and then press 'Back' until I return to the app, when checking the permissions again, non of the callbacks is called, neither "onPermissionsChecked" nor "onPermissionRationaleShouldBeShown". Why?
[OK] Only when I clear the data of the app or reinstall it again, the dialog is shown as in (1).
Version of the library
5.0.0
Code