# wx.navigateBackMiniProgram(Object object)

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

with Promise style call: Supported

Need page permissions: Mini Programs cannot call this interface from a plugin page, and plugins cannot call the interface from the plugins page

Mini Program plugin: Not supported

Go back to the previous Mini Program. Only the current Mini Program is opened by other Mini Program can be called successfully

Note:WeChat Client iOS 6.5.9,Android 6.5.10 And above version support

# parameter

# Object object

attribute type Default values Required Introductions
extraData Object {} no Data that needs to be returned to the previous Mini Program, which is available in the App.onShow To get this data in the. details
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)

# sample code

wx.navigateBackMiniProgram({
  extraData: {
    foo: 'bar'
  },
  success(res) {
    // Return success
  }
})