You need to somehow handle "Never ask again", that is, if the user puts "no longer ask", then you need to show something, or send it to the settings, or notify that the application will not work. There is the method shouldShowRequestPermissionRationale - it does not need to paste here, its task is completely different. She doesn't handle never ask again.

    1 answer 1

    Solved the problem, not an easy task. It is with the help of this method shouldShowRequestPermissionRationale that is solved, but it needs to be processed in the onRequestPermissionsResult block false , that is, where it returns false .