File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,6 +97,12 @@ - (void)getUserId:(RCTPromiseResolveBlock)resolve
9797 [_swiftAPI getUserId: resolve rejecter: reject];
9898}
9999
100+ - (void )setInAppShowResponse : (NSNumber *)inAppShowResponse
101+ {
102+ NSLog (@" ReactNativeSdk setInAppShowResponse" );
103+ [_swiftAPI setInAppShowResponse: inAppShowResponse];
104+ }
105+
100106@end
101107
102108
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ open class ReactIterableAPI: RCTEventEmitter {
156156 // MARK: - Iterable API Request Functions
157157
158158 @objc ( setInAppShowResponse: )
159- func set ( inAppShowResponse number: NSNumber ) {
159+ public func setInAppShowResponse ( inAppShowResponse number: NSNumber ) {
160160 ITBInfo ( )
161161 self . inAppShowResponse = InAppShowResponse . from ( number: number)
162162 inAppHandlerSemaphore. signal ( )
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ export interface Spec extends TurboModule {
4343 setUserId ( userId ?: string | null , authToken ?: string | null ) : void ;
4444 getUserId ( ) : Promise < string | null | undefined > ;
4545
46- // // In-app messaging
47- // setInAppShowResponse(number: number): void;
46+ // In-app messaging
47+ setInAppShowResponse ( number : number ) : void ;
4848 // getInAppMessages(): Promise<{ [key: string]: string | number | boolean }[]>;
4949 // getInboxMessages(): Promise<{ [key: string]: string | number | boolean }[]>;
5050 // getUnreadInboxMessagesCount(): Promise<number>;
Original file line number Diff line number Diff line change @@ -944,7 +944,7 @@ export class Iterable {
944944 // const message = IterableInAppMessage.fromDict(messageDict);
945945 // // MOB-10423: Check if we can use chain operator (?.) here instead
946946 // const result = Iterable.savedConfig.inAppHandler!(message);
947- // RNIterableAPI .setInAppShowResponse(result);
947+ // api .setInAppShowResponse(result);
948948 // }
949949 // );
950950 }
You can’t perform that action at this time.
0 commit comments