setOfflinePushConfig method
设置离线推送配置信息
参数
config 离线推送配置
callback 回调
isTPNSToken 是否使用tpnstoken
Implementation
Future<V2TimCallback> setOfflinePushConfig({
required double businessID,
required String token,
bool isTPNSToken = false,
bool isVoip = false,
}) async {
return V2TimCallback.fromJson(
formatJson(
await _channel.invokeMethod(
Platform.isIOS
? (isVoip ? "setVOIP" : "setAPNS")
: "setOfflinePushConfig",
buildParam(
{
"ability": Utils.getAbility(),
"businessID": businessID,
"token": token,
"isTPNSToken": isTPNSToken,
},
),
),
),
);
}