File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-18.04
7
7
strategy :
8
8
matrix :
9
- node-version : [10, 12,14]
9
+ node-version : [12,14]
10
10
steps :
11
11
- uses : actions/checkout@v2
12
12
- uses : actions/setup-node@v1
27
27
runs-on : ubuntu-18.04
28
28
strategy :
29
29
matrix :
30
- node-version : [10, 12,14]
30
+ node-version : [12,14]
31
31
steps :
32
32
- uses : actions/checkout@v2
33
33
- uses : actions/setup-node@v1
48
48
runs-on : ubuntu-18.04
49
49
strategy :
50
50
matrix :
51
- node-version : [10, 12,14]
51
+ node-version : [12,14]
52
52
steps :
53
53
- uses : actions/checkout@v2
54
54
- uses : actions/setup-node@v1
69
69
runs-on : macos-latest
70
70
strategy :
71
71
matrix :
72
- node-version : [10, 12,14]
72
+ node-version : [12,14]
73
73
steps :
74
74
- uses : actions/checkout@v2
75
75
- uses : actions/setup-node@v1
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center
104
104
didReceiveNotificationResponse : (UNNotificationResponse *)response
105
105
withCompletionHandler : (void (^)(void ))completionHandler {
106
106
[RNCPushNotificationIOS didReceiveNotificationResponse: response];
107
+ completionHandler ();
107
108
}
108
109
109
110
- (NSURL *)sourceURLForBridge : (RCTBridge *)bridge {
Original file line number Diff line number Diff line change @@ -168,13 +168,8 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
168
168
[self sendEventWithName: @" remoteNotificationRegistrationError" body: errorDetails];
169
169
}
170
170
171
- RCT_EXPORT_METHOD (onFinishRemoteNotification:(NSString *)notificationId fetchResult:(UIBackgroundFetchResult)result) {
172
- RNCRemoteNotificationCallback completionHandler = self.remoteNotificationCallbacks [notificationId];
173
- if (!completionHandler) {
174
- RCTLogError (@" There is no completion handler with notification id: %@ " , notificationId);
175
- return ;
176
- }
177
- completionHandler (result);
171
+ RCT_EXPORT_METHOD (onFinishRemoteNotification:(NSString *)notificationId fetchResult:(UIBackgroundFetchResult)result)
172
+ {
178
173
[self .remoteNotificationCallbacks removeObjectForKey: notificationId];
179
174
}
180
175
You can’t perform that action at this time.
0 commit comments