setOfflinePushConfig method Null safety

Future<V2TimCallback> setOfflinePushConfig(
  1. {required double businessID,
  2. required String token,
  3. bool isTPNSToken = false}
)

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,
          },
        ),
      ),
    ),
  );
}