In the Android 5.0 era, users can turn on/off each license in the setup options
In Android 6.0 marshmallow, what permissions are actually used in the first open, use process to receive an authorization notification, and now the iOS very similar.
Reference: http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/0830/3387.html
Requirements: To do a positioning function of the software
Checkselfpermission Check if you have permissions
Requestpermissions; Request the appropriate permissions
Onrequestpermissionsresult; Callback notification action result after user action
Note: To use the Activitycompat API. Otherwise, the super no Checkselfpermission method exception will be prompted
Lack of capacity, just beginning to encounter this problem, tossing an afternoon, through Baidu, Google solved, posted out hope to meet the same problem people have help
Get permissions dynamically in Android 6.0