@@ -77,25 +77,32 @@ - (BOOL)isObserving {
77
77
78
78
-(void )deepLinkReceived : (NSString *)deepLink {
79
79
id body = @{ @" deepLink" : deepLink };
80
- if ([self sendEventWithName: UARCTDeepLinkEventName body: body]) {
81
- [self .pendingEvents addObject: @{ @" name" : UARCTNotificationResponseEventName, @" body" : body}];
80
+
81
+ if (![self sendEventWithName: UARCTDeepLinkEventName body: body]) {
82
+ [self .pendingEvents addObject: @{ @" name" : UARCTDeepLinkEventName, @" body" : body}];
82
83
}
83
84
}
84
85
85
86
#pragma mark -
86
87
#pragma mark UAPushDelegate
87
88
88
- -(void )receivedForegroundNotification : (UANotificationContent *)notificationContent completionHandler : (void (^)())completionHandler {
89
+ -(void )receivedForegroundNotification : (UANotificationContent *)notificationContent
90
+ completionHandler : (void (^)(void ))completionHandler {
91
+
89
92
[self sendEventWithName: UARCTPushReceivedEventName body: [self eventBodyForNotificationContent: notificationContent]];
90
93
completionHandler ();
91
94
}
92
95
93
- -(void )receivedBackgroundNotification : (UANotificationContent *)notificationContent completionHandler : (void (^)(UIBackgroundFetchResult))completionHandler {
96
+ -(void )receivedBackgroundNotification : (UANotificationContent *)notificationContent
97
+ completionHandler : (void (^)(UIBackgroundFetchResult))completionHandler {
98
+
94
99
[self sendEventWithName: UARCTPushReceivedEventName body: [self eventBodyForNotificationContent: notificationContent]];
95
100
completionHandler (UIBackgroundFetchResultNoData);
96
101
}
97
102
98
- -(void )receivedNotificationResponse : (UANotificationResponse *)notificationResponse completionHandler : (void (^)())completionHandler {
103
+ -(void )receivedNotificationResponse : (UANotificationResponse *)notificationResponse
104
+ completionHandler : (void (^)(void ))completionHandler {
105
+
99
106
// Ignore dismisses for now
100
107
if ([notificationResponse.actionIdentifier isEqualToString: UANotificationDismissActionIdentifier]) {
101
108
completionHandler ();
0 commit comments