Skip to content

Commit

Permalink
PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-aman committed Sep 17, 2024
1 parent 73a2310 commit 3be31ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/wrappers/CioRctWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ @interface RCT_EXTERN_REMAP_MODULE(NativeCustomerIO, CioRctWrapper, NSObject)
RCT_EXTERN_METHOD(screen:(NSString *)title properties:(NSDictionary *))
RCT_EXTERN_METHOD(setProfileAttributes: (NSDictionary *)attributes)
RCT_EXTERN_METHOD(setDeviceAttributes: (NSDictionary *)attributes)
RCT_EXTERN_METHOD(registerDeviceToken: (NSString *)identify)
RCT_EXTERN_METHOD(registerDeviceToken: (NSString *)token)
RCT_EXTERN_METHOD(deleteDeviceToken)

+ (BOOL)requiresMainQueueSetup
Expand Down
2 changes: 1 addition & 1 deletion src/customerio-cdp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class CustomerIO {
token: string
) => {
if (token === null || token === undefined) {
throw new Error('You must provide a token to registerDeviceToken');
throw new Error('You must provide a valid token to register device token.');
}
NativeCustomerIO.registerDeviceToken(token);
};
Expand Down

0 comments on commit 3be31ad

Please sign in to comment.