diff --git a/ios/wrappers/CioRctWrapper.mm b/ios/wrappers/CioRctWrapper.mm index b3cf4aca..7f27f8f4 100644 --- a/ios/wrappers/CioRctWrapper.mm +++ b/ios/wrappers/CioRctWrapper.mm @@ -2,11 +2,11 @@ @interface RCT_EXTERN_REMAP_MODULE (NativeCustomerIO, CioRctWrapper, NSObject) -RCT_EXTERN_METHOD(initialize : (id)config args : (id _Nullable)args) -RCT_EXTERN_METHOD(identify : (NSString* _Nullable)userId traits : (NSDictionary* _Nullable)traits) +RCT_EXTERN_METHOD(initialize : (id)config args : (id)args) +RCT_EXTERN_METHOD(identify : (NSString*)userId traits : (NSDictionary*)traits) RCT_EXTERN_METHOD(clearIdentify) -RCT_EXTERN_METHOD(track : (NSString*)name properties : (NSDictionary* _Nullable)properties) -RCT_EXTERN_METHOD(screen : (NSString*)title properties : (NSDictionary* _Nullable)properties) +RCT_EXTERN_METHOD(track : (NSString*)name properties : (NSDictionary*)properties) +RCT_EXTERN_METHOD(screen : (NSString*)title properties : (NSDictionary*)properties) RCT_EXTERN_METHOD(setProfileAttributes : (NSDictionary*)attributes) RCT_EXTERN_METHOD(setDeviceAttributes : (NSDictionary*)attributes) RCT_EXTERN_METHOD(registerDeviceToken : (NSString*)token) diff --git a/ios/wrappers/inapp/CioRctInAppMessaging.swift b/ios/wrappers/inapp/CioRctInAppMessaging.swift index d9debca2..ce18677f 100644 --- a/ios/wrappers/inapp/CioRctInAppMessaging.swift +++ b/ios/wrappers/inapp/CioRctInAppMessaging.swift @@ -28,7 +28,7 @@ class CioRctInAppMessaging: RCTEventEmitter { /** * Dismisses any currently displayed in-app message */ - @objc + @objc(dismissMessage) func dismissMessage() { MessagingInApp.shared.dismissMessage() } diff --git a/ios/wrappers/push/CioRctPushMessaging.swift b/ios/wrappers/push/CioRctPushMessaging.swift index 54e9259d..73d6c334 100644 --- a/ios/wrappers/push/CioRctPushMessaging.swift +++ b/ios/wrappers/push/CioRctPushMessaging.swift @@ -31,7 +31,7 @@ class CioRctPushMessaging: NSObject { } // Get the currently registered device token for the app - @objc + @objc(getRegisteredDeviceToken:rejecter:) func getRegisteredDeviceToken(resolver resolve: @escaping (RCTPromiseResolveBlock), rejecter reject: @escaping (RCTPromiseRejectBlock)) { guard let token = CustomerIO.shared.registeredDeviceToken else { reject(CustomerioConstants.cioTag, CustomerioConstants.showDeviceTokenFailureError, nil) @@ -66,7 +66,7 @@ class CioRctPushMessaging: NSObject { } } - @objc + @objc(getPushPermissionStatus:rejecter:) func getPushPermissionStatus(resolver resolve: @escaping (RCTPromiseResolveBlock), rejecter _: @escaping (RCTPromiseRejectBlock)) { getPushNotificationPermissionStatus { status in resolve(status.value)