setOfflinePushConfig method
Implementation
@override
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",
buildOfflinePushParam(
{
"ability": Utils.getAbility(),
"businessID": businessID,
"token": token,
"isTPNSToken": isTPNSToken,
},
),
),
),
);
}