@@ -38,11 +38,6 @@ + (instancetype)sharedInstance {
3838- (instancetype )init {
3939 self = [super init ];
4040 if (self) {
41-
42- [[NSNotificationCenter defaultCenter ] addObserver: self
43- selector: @selector (handleContentDidAppearNotification: )
44- name: RCTContentDidAppearNotification
45- object: nil ];
4641 CleverTap *clevertap = [CleverTap sharedInstance ];
4742 [self setDelegates: clevertap];
4843 }
@@ -63,7 +58,6 @@ - (void)setDelegates:(CleverTap *)cleverTapInstance {
6358- (void )applicationDidLaunchWithOptions : (NSDictionary *)options {
6459 NSDictionary *notification = [options valueForKey: UIApplicationLaunchOptionsRemoteNotificationKey];
6560 if (notification){
66- self.pendingPushNotificationExtras = notification;
6761 if (notification[@" wzrk_dl" ]) {
6862 self.launchDeepLink = notification[@" wzrk_dl" ];
6963 RCTLogInfo (@" CleverTapReact: setting launch deeplink: %@ " , self.launchDeepLink );
@@ -171,15 +165,4 @@ - (void)onPushPermissionResponse:(BOOL)accepted {
171165 [self postNotificationWithName: kCleverTapPushPermissionResponseReceived andBody: body];
172166}
173167
174- - (void )handleContentDidAppearNotification : (NSNotification *)notification {
175- [[NSNotificationCenter defaultCenter ] removeObserver: self ];
176-
177- NSMutableDictionary *pushNotificationExtras = [NSMutableDictionary new ];
178- NSDictionary *customExtras = self.pendingPushNotificationExtras ;
179- if (customExtras != nil ) {
180- pushNotificationExtras = [NSMutableDictionary dictionaryWithDictionary: customExtras];
181- [self postNotificationWithName: kCleverTapPushNotificationClicked andBody: pushNotificationExtras];
182- }
183- }
184-
185168@end
0 commit comments