react-native-zendesk-messaging icon indicating copy to clipboard operation
react-native-zendesk-messaging copied to clipboard

iOS updatePushNotificationToken

Open deelo55 opened this issue 5 months ago • 0 comments

Any reason why iOS doesn't support updatePushNotificationToken?

https://github.com/leegeunhyeok/react-native-zendesk-messaging/blob/master/src/index.ts

export function updatePushNotificationToken(token: string): void {
  if (Platform.OS !== 'android') return;
  return ZendeskMessaging.updatePushNotificationToken(token);
}

It is supported in the native code: https://github.com/leegeunhyeok/react-native-zendesk-messaging/blob/master/ios/ZendeskNativeModule.swift

  @objc(updatePushNotificationToken:)
  static func updatePushNotificationToken(_ token: Data) -> Void {
    PushNotifications.updatePushNotificationToken(token)
  }

deelo55 avatar Oct 02 '24 10:10 deelo55