-
Notifications
You must be signed in to change notification settings - Fork 43
[MOB-11957] ios-crashes-when-clicking-track-push-open-with-ca #695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 14 commits
32c7eb8
5d8c543
b6e4488
3e252ee
e0d026e
dfb4934
5a946b2
c009a1e
f9aa273
560a8c5
91062db
5b7870a
4cc665f
7664ace
18bd0af
26fa44b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -167,7 +167,7 @@ public void getUserId(Promise promise) { | |
| promise.resolve(RNIterableInternal.getUserId()); | ||
| } | ||
|
|
||
| public void trackEvent(String name, ReadableMap dataFields) { | ||
| public void trackEvent(String name, @Nullable ReadableMap dataFields) { | ||
| IterableLogger.v(TAG, "trackEvent"); | ||
| IterableApi.getInstance().track(name, optSerializedDataFields(dataFields)); | ||
| } | ||
|
|
@@ -177,16 +177,16 @@ public void updateCart(ReadableArray items) { | |
| IterableApi.getInstance().updateCart(Serialization.commerceItemsFromReadableArray(items)); | ||
| } | ||
|
|
||
| public void trackPurchase(double total, ReadableArray items, ReadableMap dataFields) { | ||
| public void trackPurchase(double total, ReadableArray items, @Nullable ReadableMap dataFields) { | ||
| IterableLogger.v(TAG, "trackPurchase"); | ||
| IterableApi.getInstance().trackPurchase(total, Serialization.commerceItemsFromReadableArray(items), optSerializedDataFields(dataFields)); | ||
| } | ||
|
|
||
| public void trackPushOpenWithCampaignId(double campaignId, Double templateId, String messageId, boolean appAlreadyRunning, ReadableMap dataFields) { | ||
| public void trackPushOpenWithCampaignId(double campaignId, @Nullable Double templateId, String messageId, boolean appAlreadyRunning, @Nullable ReadableMap dataFields) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| RNIterableInternal.trackPushOpenWithCampaignId((int) campaignId, templateId != null ? templateId.intValue() : null, messageId, optSerializedDataFields(dataFields)); | ||
| } | ||
|
|
||
| public void updateSubscriptions(ReadableArray emailListIds, ReadableArray unsubscribedChannelIds, ReadableArray unsubscribedMessageTypeIds, ReadableArray subscribedMessageTypeIds, double campaignId, double templateId) { | ||
| public void updateSubscriptions(@Nullable ReadableArray emailListIds, @Nullable ReadableArray unsubscribedChannelIds, @Nullable ReadableArray unsubscribedMessageTypeIds, @Nullable ReadableArray subscribedMessageTypeIds, double campaignId, double templateId) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| IterableLogger.v(TAG, "updateSubscriptions"); | ||
| Integer finalCampaignId = null, finalTemplateId = null; | ||
| if (campaignId > 0) { | ||
|
|
@@ -265,7 +265,7 @@ public void getAttributionInfo(Promise promise) { | |
| } | ||
| } | ||
|
|
||
| public void setAttributionInfo(ReadableMap attributionInfoReadableMap) { | ||
| public void setAttributionInfo(@Nullable ReadableMap attributionInfoReadableMap) { | ||
| IterableLogger.printInfo(); | ||
| try { | ||
| JSONObject attributionInfoJson = Serialization.convertMapToJson(attributionInfoReadableMap); | ||
|
|
@@ -593,7 +593,7 @@ public void removeListeners(double count) { | |
| // Keep: Required for RN built in Event Emitter Calls. | ||
| } | ||
|
|
||
| public void passAlongAuthToken(String authToken) { | ||
| public void passAlongAuthToken(@Nullable String authToken) { | ||
| passedAuthToken = authToken; | ||
|
|
||
| if (authHandlerCallbackLatch != null) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,7 +71,7 @@ public void getUserId(Promise promise) { | |
| } | ||
|
|
||
| @Override | ||
| public void trackEvent(String name, ReadableMap dataFields) { | ||
| public void trackEvent(String name, @Nullable ReadableMap dataFields) { | ||
| moduleImpl.trackEvent(name, dataFields); | ||
| } | ||
|
|
||
|
|
@@ -81,17 +81,17 @@ public void updateCart(ReadableArray items) { | |
| } | ||
|
|
||
| @Override | ||
| public void trackPurchase(double total, ReadableArray items, ReadableMap dataFields) { | ||
| public void trackPurchase(double total, ReadableArray items, @Nullable ReadableMap dataFields) { | ||
| moduleImpl.trackPurchase(total, items, dataFields); | ||
| } | ||
|
|
||
| @Override | ||
| public void trackPushOpenWithCampaignId(double campaignId, Double templateId, String messageId, boolean appAlreadyRunning, ReadableMap dataFields) { | ||
| public void trackPushOpenWithCampaignId(double campaignId, @Nullable Double templateId, String messageId, boolean appAlreadyRunning, @Nullable ReadableMap dataFields) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| moduleImpl.trackPushOpenWithCampaignId(campaignId, templateId, messageId, appAlreadyRunning, dataFields); | ||
| } | ||
|
|
||
| @Override | ||
| public void updateSubscriptions(ReadableArray emailListIds, ReadableArray unsubscribedChannelIds, ReadableArray unsubscribedMessageTypeIds, ReadableArray subscribedMessageTypeIds, double campaignId, double templateId) { | ||
| public void updateSubscriptions(@Nullable ReadableArray emailListIds, @Nullable ReadableArray unsubscribedChannelIds, @Nullable ReadableArray unsubscribedMessageTypeIds, @Nullable ReadableArray subscribedMessageTypeIds, double campaignId, double templateId) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| moduleImpl.updateSubscriptions(emailListIds, unsubscribedChannelIds, unsubscribedMessageTypeIds, subscribedMessageTypeIds, campaignId, templateId); | ||
| } | ||
|
|
||
|
|
@@ -121,7 +121,7 @@ public void getAttributionInfo(Promise promise) { | |
| } | ||
|
|
||
| @Override | ||
| public void setAttributionInfo(ReadableMap attributionInfoReadableMap) { | ||
| public void setAttributionInfo(@Nullable ReadableMap attributionInfoReadableMap) { | ||
| moduleImpl.setAttributionInfo(attributionInfoReadableMap); | ||
| } | ||
|
|
||
|
|
@@ -185,7 +185,6 @@ public void setAutoDisplayPaused(final boolean paused) { | |
| moduleImpl.setAutoDisplayPaused(paused); | ||
| } | ||
|
|
||
| @Override | ||
| public void wakeApp() { | ||
| moduleImpl.wakeApp(); | ||
| } | ||
|
|
@@ -200,7 +199,6 @@ public void endSession() { | |
| moduleImpl.endSession(); | ||
| } | ||
|
|
||
| @Override | ||
| public void updateVisibleRows(ReadableArray visibleRows) { | ||
| moduleImpl.updateVisibleRows(visibleRows); | ||
| } | ||
|
|
@@ -215,8 +213,7 @@ public void removeListeners(double count) { | |
| moduleImpl.removeListeners(count); | ||
| } | ||
|
|
||
| @Override | ||
| public void passAlongAuthToken(String authToken) { | ||
| public void passAlongAuthToken(@Nullable String authToken) { | ||
| moduleImpl.passAlongAuthToken(authToken); | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,7 +74,7 @@ public void getUserId(Promise promise) { | |
| } | ||
|
|
||
| @ReactMethod | ||
| public void trackEvent(String name, ReadableMap dataFields) { | ||
| public void trackEvent(String name, @Nullable ReadableMap dataFields) { | ||
| moduleImpl.trackEvent(name, dataFields); | ||
| } | ||
|
|
||
|
|
@@ -84,17 +84,17 @@ public void updateCart(ReadableArray items) { | |
| } | ||
|
|
||
| @ReactMethod | ||
| public void trackPurchase(double total, ReadableArray items, ReadableMap dataFields) { | ||
| public void trackPurchase(double total, ReadableArray items, @Nullable ReadableMap dataFields) { | ||
| moduleImpl.trackPurchase(total, items, dataFields); | ||
| } | ||
|
|
||
| @ReactMethod | ||
| public void trackPushOpenWithCampaignId(double campaignId, Double templateId, String messageId, boolean appAlreadyRunning, ReadableMap dataFields) { | ||
| public void trackPushOpenWithCampaignId(double campaignId, @Nullable Double templateId, String messageId, boolean appAlreadyRunning, @Nullable ReadableMap dataFields) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| moduleImpl.trackPushOpenWithCampaignId(campaignId, templateId, messageId, appAlreadyRunning, dataFields); | ||
| } | ||
|
|
||
| @ReactMethod | ||
| public void updateSubscriptions(ReadableArray emailListIds, ReadableArray unsubscribedChannelIds, ReadableArray unsubscribedMessageTypeIds, ReadableArray subscribedMessageTypeIds, double campaignId, double templateId) { | ||
| public void updateSubscriptions(@Nullable ReadableArray emailListIds, @Nullable ReadableArray unsubscribedChannelIds, @Nullable ReadableArray unsubscribedMessageTypeIds, @Nullable ReadableArray subscribedMessageTypeIds, double campaignId, double templateId) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| moduleImpl.updateSubscriptions(emailListIds, unsubscribedChannelIds, unsubscribedMessageTypeIds, subscribedMessageTypeIds, campaignId, templateId); | ||
| } | ||
|
|
||
|
|
@@ -124,7 +124,7 @@ public void getAttributionInfo(Promise promise) { | |
| } | ||
|
|
||
| @ReactMethod | ||
| public void setAttributionInfo(ReadableMap attributionInfoReadableMap) { | ||
| public void setAttributionInfo(@Nullable ReadableMap attributionInfoReadableMap) { | ||
| moduleImpl.setAttributionInfo(attributionInfoReadableMap); | ||
| } | ||
|
|
||
|
|
@@ -219,7 +219,7 @@ public void removeListeners(double count) { | |
| } | ||
|
|
||
| @ReactMethod | ||
| public void passAlongAuthToken(String authToken) { | ||
| public void passAlongAuthToken(@Nullable String authToken) { | ||
| moduleImpl.passAlongAuthToken(authToken); | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,7 +106,7 @@ - (void)getUserId:(RCTPromiseResolveBlock)resolve | |
| [_swiftAPI getUserId:resolve rejecter:reject]; | ||
| } | ||
|
|
||
| - (void)setInAppShowResponse:(NSNumber *)inAppShowResponse { | ||
| - (void)setInAppShowResponse:(double)inAppShowResponse { | ||
|
evantk91 marked this conversation as resolved.
|
||
| [_swiftAPI setInAppShowResponse:inAppShowResponse]; | ||
| } | ||
|
|
||
|
|
@@ -137,8 +137,8 @@ - (void)showMessage:(NSString *)messageId | |
| } | ||
|
|
||
| - (void)removeMessage:(NSString *)messageId | ||
| location:(NSNumber *)location | ||
| source:(NSNumber *)source { | ||
| location:(double)location | ||
| source:(double)source { | ||
| [_swiftAPI removeMessage:messageId location:location source:source]; | ||
| } | ||
|
|
||
|
|
@@ -154,7 +154,7 @@ - (void)trackEvent:(NSString *)name dataFields:(NSDictionary *)dataFields { | |
| [_swiftAPI trackEvent:name dataFields:dataFields]; | ||
| } | ||
|
|
||
| - (void)trackPushOpenWithCampaignId:(NSNumber *)campaignId | ||
| - (void)trackPushOpenWithCampaignId:(double)campaignId | ||
| templateId:(NSNumber *)templateId | ||
| messageId:(NSString *)messageId | ||
| appAlreadyRunning:(BOOL)appAlreadyRunning | ||
|
|
@@ -166,19 +166,19 @@ - (void)trackPushOpenWithCampaignId:(NSNumber *)campaignId | |
| dataFields:dataFields]; | ||
| } | ||
|
|
||
| - (void)trackInAppOpen:(NSString *)messageId location:(NSNumber *)location { | ||
| - (void)trackInAppOpen:(NSString *)messageId location:(double)location { | ||
| [_swiftAPI trackInAppOpen:messageId location:location]; | ||
| } | ||
|
|
||
| - (void)trackInAppClick:(NSString *)messageId | ||
| location:(NSNumber *)location | ||
| location:(double)location | ||
| clickedUrl:(NSString *)clickedUrl { | ||
| [_swiftAPI trackInAppClick:messageId location:location clickedUrl:clickedUrl]; | ||
| } | ||
|
|
||
| - (void)trackInAppClose:(NSString *)messageId | ||
| location:(NSNumber *)location | ||
| source:(NSNumber *)source | ||
| location:(double)location | ||
| source:(double)source | ||
| clickedUrl:(NSString *)clickedUrl { | ||
| [_swiftAPI trackInAppClose:messageId | ||
| location:location | ||
|
|
@@ -187,16 +187,16 @@ - (void)trackInAppClose:(NSString *)messageId | |
| } | ||
|
|
||
| - (void)inAppConsume:(NSString *)messageId | ||
| location:(NSNumber *)location | ||
| source:(NSNumber *)source { | ||
| location:(double)location | ||
| source:(double)source { | ||
| [_swiftAPI inAppConsume:messageId location:location source:source]; | ||
| } | ||
|
|
||
| - (void)updateCart:(NSArray *)items { | ||
| [_swiftAPI updateCart:items]; | ||
| } | ||
|
|
||
| - (void)trackPurchase:(NSNumber *)total | ||
| - (void)trackPurchase:(double)total | ||
| items:(NSArray *)items | ||
| dataFields:(NSDictionary *)dataFields { | ||
| [_swiftAPI trackPurchase:total items:items dataFields:dataFields]; | ||
|
|
@@ -216,7 +216,7 @@ - (void)getAttributionInfo:(RCTPromiseResolveBlock)resolve | |
| [_swiftAPI getAttributionInfo:resolve rejecter:reject]; | ||
| } | ||
|
|
||
| - (void)setAttributionInfo:(NSDictionary *)attributionInfo { | ||
| - (void)setAttributionInfo:(NSDictionary *_Nullable)attributionInfo { | ||
| [_swiftAPI setAttributionInfo:attributionInfo]; | ||
| } | ||
|
|
||
|
|
@@ -243,12 +243,12 @@ - (void)handleAppLink:(NSString *)appLink | |
| [_swiftAPI handleAppLink:appLink resolver:resolve rejecter:reject]; | ||
| } | ||
|
|
||
| - (void)updateSubscriptions:(NSArray *)emailListIds | ||
| unsubscribedChannelIds:(NSArray *)unsubscribedChannelIds | ||
| unsubscribedMessageTypeIds:(NSArray *)unsubscribedMessageTypeIds | ||
| subscribedMessageTypeIds:(NSArray *)subscribedMessageTypeIds | ||
| campaignId:(NSNumber *)campaignId | ||
| templateId:(NSNumber *)templateId { | ||
| - (void)updateSubscriptions:(NSArray *_Nullable)emailListIds | ||
| unsubscribedChannelIds:(NSArray *_Nullable)unsubscribedChannelIds | ||
| unsubscribedMessageTypeIds:(NSArray *_Nullable)unsubscribedMessageTypeIds | ||
| subscribedMessageTypeIds:(NSArray *_Nullable)subscribedMessageTypeIds | ||
| campaignId:(double)campaignId | ||
| templateId:(double)templateId { | ||
| [_swiftAPI updateSubscriptions:emailListIds | ||
| unsubscribedChannelIds:unsubscribedChannelIds | ||
| unsubscribedMessageTypeIds:unsubscribedMessageTypeIds | ||
|
|
@@ -269,10 +269,14 @@ - (void)updateVisibleRows:(NSArray *)visibleRows { | |
| [_swiftAPI updateVisibleRows:visibleRows]; | ||
| } | ||
|
|
||
| - (void)passAlongAuthToken:(NSString *)authToken { | ||
| - (void)passAlongAuthToken:(NSString *_Nullable)authToken { | ||
| [_swiftAPI passAlongAuthToken:authToken]; | ||
| } | ||
|
|
||
| - (void)wakeApp { | ||
| // Placeholder function -- this method is only used in Android | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice add |
||
| } | ||
|
|
||
| // MARK: - TurboModule integration | ||
| - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule: | ||
| (const facebook::react::ObjCTurboModule::InitParams &)params { | ||
|
|
@@ -335,7 +339,7 @@ - (void)passAlongAuthToken:(NSString *)authToken { | |
| [_swiftAPI getUserId:resolve rejecter:reject]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(setInAppShowResponse : (NSNumber *)inAppShowResponse) { | ||
| RCT_EXPORT_METHOD(setInAppShowResponse : (double)inAppShowResponse) { | ||
| [_swiftAPI setInAppShowResponse:inAppShowResponse]; | ||
| } | ||
|
|
||
|
|
@@ -363,8 +367,8 @@ - (void)passAlongAuthToken:(NSString *)authToken { | |
| rejecter:reject]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(removeMessage : (NSString *)messageId location : (NSNumber *) | ||
| location source : (NSNumber *)source) { | ||
| RCT_EXPORT_METHOD(removeMessage : (NSString *)messageId location : (double) | ||
| location source : (double)source) { | ||
| [_swiftAPI removeMessage:messageId location:location source:source]; | ||
| } | ||
|
|
||
|
|
@@ -382,46 +386,45 @@ - (void)passAlongAuthToken:(NSString *)authToken { | |
| } | ||
|
|
||
| RCT_EXPORT_METHOD( | ||
| trackPushOpenWithCampaignId : (NSNumber *) | ||
| campaignId templateId : (NSNumber *)templateId messageId : (NSString *) | ||
| messageId appAlreadyRunning : (BOOL) | ||
| appAlreadyRunning dataFields : (NSDictionary *)dataFields) { | ||
| trackPushOpenWithCampaignId : (double)campaignId templateId : (NSNumber *) | ||
|
evantk91 marked this conversation as resolved.
|
||
| templateId messageId : (NSString *)messageId appAlreadyRunning : (BOOL) | ||
| appAlreadyRunning dataFields : (NSDictionary *)dataFields) { | ||
| [_swiftAPI trackPushOpenWithCampaignId:campaignId | ||
| templateId:templateId | ||
| messageId:messageId | ||
| appAlreadyRunning:appAlreadyRunning | ||
| dataFields:dataFields]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(trackInAppOpen : (NSString *)messageId location : (NSNumber *) | ||
| RCT_EXPORT_METHOD(trackInAppOpen : (NSString *)messageId location : (double) | ||
| location) { | ||
| [_swiftAPI trackInAppOpen:messageId location:location]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(trackInAppClick : (NSString *)messageId location : ( | ||
| NSNumber *)location clickedUrl : (NSString *)clickedUrl) { | ||
| RCT_EXPORT_METHOD(trackInAppClick : (NSString *)messageId location : (double) | ||
| location clickedUrl : (NSString *)clickedUrl) { | ||
| [_swiftAPI trackInAppClick:messageId location:location clickedUrl:clickedUrl]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(trackInAppClose : (NSString *)messageId location : ( | ||
| NSNumber *)location source : (NSNumber *)source clickedUrl : (NSString *) | ||
| clickedUrl) { | ||
| RCT_EXPORT_METHOD(trackInAppClose : (NSString *)messageId location : (double) | ||
| location source : (double)source clickedUrl : (NSString *) | ||
| clickedUrl) { | ||
|
evantk91 marked this conversation as resolved.
|
||
| [_swiftAPI trackInAppClose:messageId | ||
| location:location | ||
| source:source | ||
| clickedUrl:clickedUrl]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(inAppConsume : (NSString *)messageId location : (NSNumber *) | ||
| location source : (NSNumber *)source) { | ||
| RCT_EXPORT_METHOD(inAppConsume : (NSString *)messageId location : (double) | ||
| location source : (double)source) { | ||
| [_swiftAPI inAppConsume:messageId location:location source:source]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(updateCart : (NSArray *)items) { | ||
| [_swiftAPI updateCart:items]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(trackPurchase : (NSNumber *)total items : (NSArray *) | ||
| RCT_EXPORT_METHOD(trackPurchase : (double)total items : (NSArray *) | ||
| items dataFields : (NSDictionary *)dataFields) { | ||
| [_swiftAPI trackPurchase:total items:items dataFields:dataFields]; | ||
| } | ||
|
|
@@ -430,6 +433,7 @@ - (void)passAlongAuthToken:(NSString *)authToken { | |
| BOOL)mergeNestedObjects) { | ||
| [_swiftAPI updateUser:dataFields mergeNestedObjects:mergeNestedObjects]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(updateEmail : (NSString *)email authToken : (NSString *) | ||
| authToken) { | ||
| [_swiftAPI updateEmail:email authToken:authToken]; | ||
|
|
@@ -471,8 +475,8 @@ - (void)passAlongAuthToken:(NSString *)authToken { | |
| NSArray *) | ||
| unsubscribedChannelIds unsubscribedMessageTypeIds : (NSArray *) | ||
| unsubscribedMessageTypeIds subscribedMessageTypeIds : (NSArray *) | ||
| subscribedMessageTypeIds campaignId : (NSNumber *) | ||
| campaignId templateId : (NSNumber *)templateId) { | ||
| subscribedMessageTypeIds campaignId : (double) | ||
| campaignId templateId : (double)templateId) { | ||
| [_swiftAPI updateSubscriptions:emailListIds | ||
| unsubscribedChannelIds:unsubscribedChannelIds | ||
| unsubscribedMessageTypeIds:unsubscribedMessageTypeIds | ||
|
|
@@ -491,10 +495,14 @@ - (void)passAlongAuthToken:(NSString *)authToken { | |
| [_swiftAPI updateVisibleRows:visibleRows]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(passAlongAuthToken : (NSString *)authToken) { | ||
| RCT_EXPORT_METHOD(passAlongAuthToken : (NSString *_Nullable)authToken) { | ||
| [_swiftAPI passAlongAuthToken:authToken]; | ||
| } | ||
|
|
||
| RCT_EXPORT_METHOD(wakeApp) { | ||
| // Placeholder function -- this method is only used in Android | ||
| } | ||
|
|
||
| #endif | ||
|
|
||
| @end | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function with many parameters (count = 5): trackPushOpenWithCampaignId [qlty:function-parameters]