Use this API to open the Mini Program settings page and return permission setting results. Only the permissions that have been requested by the Mini Program from the user are displayed on the settings page.
Parameters
Property
Type
Required
Description
success
Function
No
Callback on success with current settings
fail
Function
No
Callback on failure
complete
Function
No
Callback that always executes
Success Callback Parameters
Property
Type
Description
authSetting
Object
Results of user authorization. Keys are the values of scopes and values are boolean types, which shows whether the user gives the permission or not.
authSetting Object
Property
Type
Description
location
Boolean
Whether location permission (my.getLocation) is granted
camera
Boolean
Whether camera permission (my.scan) is granted
album
Boolean
Whether photo album permission (my.chooseImage, my.saveImage) is granted
userInfo
Boolean
Whether user info permission (my.getOpenUserInfo) is granted