react-native-zendesk-messaging
react-native-zendesk-messaging copied to clipboard
iOS updatePushNotificationToken
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)
}