setOfflinePushConfig method

Future<V2TimCallback> setOfflinePushConfig({
  1. required double businessID,
  2. required String token,
})

设置离线推送配置信息

参数

config	离线推送配置
callback	回调

Implementation

Future<V2TimCallback> setOfflinePushConfig({
  required double businessID,
  required String token,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        Platform.isIOS ? "setAPNS" : "setOfflinePushConfig",
        buildParam(
          {
            "businessID": businessID,
            "token": token,
          },
        ),
      ),
    ),
  );
}