setOfflinePushConfig

Introduction

setOfflinePushConfig

Parameter details

Parameter name Parameter type Required Description
businessID number yes businessID from console for each manufacturer.
token string yes The token from manufacturer push SDK.
isTPNSToken boolean yes Should be specified with false.

Returned template

V2TimCallback

{
    code : number
    desc : string
}

Return value details

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

Code example

import { TencentImSDKPlugin } from 'react-native-tim-js';


const setOfflinePushConfigRes = await TencentImSDKPlugin.v2TIMManager
    .getOfflinePushManager()
    .setOfflinePushConfig(
        0,
        '',
        false
    );
if (setOfflinePushConfigRes.code === 0) {

}

results matching ""

    No results matching ""