updateAPNSToken method

Future<NIMResult<void>> updateAPNSToken(
  1. Uint8List token,
  2. String? customContentKey
)

更新iOS deviceToken

token 当前设备的 devicetoken

customContentKey 自定义本端推送内容, 设置key可对应业务服务器自定义推送文案; 传空字符串清空配置, null 则不更改

Implementation

Future<NIMResult<void>> updateAPNSToken(
    Uint8List token, String? customContentKey) async {
  return _platform.updateAPNSTokenIOS(token, customContentKey);
}