android - Does checking the Never ask again box when asking for a runtime permission disable future dialogs? -
if user denies runtime permission never ask again checked, disable future ability ask same permission? user have go through settings enable permission?
in application, when call
activitycompat.requestpermissions(this, new string[]{manifest.permission.read_phone_state}, 0)
and permission has been denied never ask again checked, won't show dialog box @ all. expected behavior?
this expected behaviour.
from the documentation:
when system asks user grant permission, the user has option of telling system not ask permission again. in case, time app uses
requestpermissions()
ask permission again, the system denies request. system callsonrequestpermissionsresult()
callback method , passespermission_denied
, same way if user had explicitly rejected request again. means when callrequestpermissions()
, cannot assume direct interaction user has taken place.
Comments
Post a Comment