setOfflinePushConfig

Introduction

setOfflinePushConfig

This method can be invoked automatically by the 'uploadToken' method on our push extension, tim_ui_kit_push_plugin.

Parameter details

Parameter name Parameter type Required Platform Description
businessID double yes All businessID from console for each manufacturer.
token String yes All The token from manufacturer push SDK.
isTPNSToken bool yes All Should be specified with false.

Returned template

V2TimCallback

{
    code : int
    desc : String
}

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the error. It will be empty if success.V2TimMsgCreateInfoResult

Code example

    V2TimCallback setOfflinePushConfigRes = await TencentImSDKPlugin
        .v2TIMManager
        .getOfflinePushManager()
        .setOfflinePushConfig(
          businessID: 0,
          token: "",
          isTPNSToken: false);
    if (setOfflinePushConfigRes.code == 0) {
        }

results matching ""

    No results matching ""