Android 6.0+:
The objective is to force the user to accept the permissions to be able to
use the app.
This is not allowed, you can not force the user to accept the permissions your application requires to work correctly.
What you can do is detect if you have permission or not, suggest accepting the permit and show the dialogue.
In the case of the application that you mentioned initially, it shows a window to suggest that you must accept the permissions required by the application:
Later it is required one by one:
If one or more of them you did not accept them, show this dialogue by suggesting again:
- As an important note, the Android 6.0.1 operating system has a bug which sometimes shows only the allow button, and sometimes it does not
It has functionality.
There is no way you can hide the "Reject" / "Deny" button.