You can use this topic … When the user does not agree to the permission, a message appears to him that he must agree, otherwise exit the application