# wx.openSetting(Object object)

Start from base library version 1.1.0. Please remaining backward compatible.

with Promise style call: Supported

Mini Program plugin: Support, need to Mini Program base library version no less than 2.10.3

Set up the client Mini Program setup interface, return the result of user setup.Set the interface will only appear the Mini Program has requested to the userJurisdiction

# parameter

# Object object

attribute type Default values Required Introductions Minimum version
withSubscriptions Boolean false no Whether to get the subscription status of the user's subscription message at the same time. Note: with Subscriptions Only returns a subscription message where the user has checked "Always keep above selection, no longer ask" in the subscription panel. 2.10.3
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
初始值 function no Interface calls the end of the callback function (call success or failure will be executed)

# object.success callback

# parameter
# Object res
attribute type Introductions Minimum version
authSetting AuthSetting User Authorization Results
subscriptionsSetting SubscriptionsSetting User subscription message settings, interface parameterswithSubscriptionsValue istrueWill return only when. 2.10.3
  • Note: 2.3.0 At the beginning of the version, users can jump to open the settings page to manage authorization information after clicking behavior.details

# sample code

  success (res) {
    // res.authSetting = {
    //   "scope.userInfo": true,
    //   "scope.userLocation": true
    // }