setOfflinePushConfig method Null safety
Set offline push configuration
Parameter
config Offline push configuration
callback Callback
isTPNSToken whether to use tpnstoken
Implementation
Future<V2TimCallback> setOfflinePushConfig({
required double businessID,
required String token,
bool isTPNSToken = false,
}) async {
return V2TimCallback.fromJson(
formatJson(
await _channel.invokeMethod(
Platform.isIOS ? "setAPNS" : "setOfflinePushConfig",
buildParam(
{
"businessID": businessID,
"token": token,
"isTPNSToken": isTPNSToken,
},
),
),
),
);
}