Skip to content

Commit

Permalink
fix: build error on local notification (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar authored Nov 9, 2020
1 parent 4a8996d commit d0c9ae1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ios/RNCPushNotificationIOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
}
}


RCT_EXPORT_METHOD(getInitialNotification:(RCTPromiseResolveBlock)resolve
reject:(__unused RCTPromiseRejectBlock)reject)
{
Expand All @@ -625,11 +626,6 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
initialNotification[@"remote"] = @YES;
resolve(initialNotification);
} else if (initialLocalNotification) {
NSMutableDictionary *userInfo = [content.userInfo mutableCopy];
NSMutableDictionary *localInfo = [initialLocalNotification.userInfo mutableCopy];
localInfo[@"userInteraction"] = [NSNumber numberWithInt:1];
initialLocalNotification.userInfo = localInfo;
initialLocalNotification[@"userInteraction"] = [NSNumber numberWithInt:1];
resolve(RCTFormatLocalNotification(initialLocalNotification));
} else {
resolve((id)kCFNull);
Expand Down

0 comments on commit d0c9ae1

Please sign in to comment.