diff --git a/ios/AirshipReactNative.swift b/ios/AirshipReactNative.swift index 3c9b07c2..210804a2 100644 --- a/ios/AirshipReactNative.swift +++ b/ios/AirshipReactNative.swift @@ -367,7 +367,7 @@ public extension AirshipReactNative { } @objc - func notifyRemoteLogin() throws { + func contactNotifyRemoteLogin() throws { try AirshipProxy.shared.contact.notifyRemoteLogin() } diff --git a/ios/RTNAirship.mm b/ios/RTNAirship.mm index 56612fbf..2d4d7a2a 100644 --- a/ios/RTNAirship.mm +++ b/ios/RTNAirship.mm @@ -452,6 +452,15 @@ + (BOOL)requiresMainQueueSetup { [self handleResult:nil error:error resolve:resolve reject:reject]; } +RCT_REMAP_METHOD(contactNotifyRemoteLogin, + contactNotifyRemoteLogin:(RCTPromiseResolveBlock)resolve + reject:(RCTPromiseRejectBlock)reject) { + NSError *error; + [AirshipReactNative.shared contactNotifyRemoteLoginAndReturnError:&error]; + + [self handleResult:nil error:error resolve:resolve reject:reject]; +} + RCT_REMAP_METHOD(inAppGetDisplayInterval, inAppGetDisplayInterval:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) {