# wx.setBackgroundFetchToken(object object)

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

with Promise style call: Supported

Mini Program plugin: Not supported

Set the custom login state, in the periodic pull data, to facilitate third-party server verification request legitimacy

# parameter

# object object

attribute type Default values Required Introductions
token String yes Custom login states
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)