Skip to content

Commit

Permalink
fix(messaging, ios): call original delegate when intercepting willPre…
Browse files Browse the repository at this point in the history
…sentNotification (invertase#4088)
  • Loading branch information
ttkien authored Aug 14, 2020
1 parent 41c6598 commit 45cf6cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/RNFBMessaging/RNFBMessaging+UNUserNotificationCenter.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNot

// TODO in a later version allow customising completion options in JS code
completionHandler(UNNotificationPresentationOptionNone);
} else if (_originalDelegate != nil && originalDelegateRespondsTo.willPresentNotification) {
}

if (_originalDelegate != nil && originalDelegateRespondsTo.willPresentNotification) {
[_originalDelegate userNotificationCenter:center willPresentNotification:notification withCompletionHandler:completionHandler];
} else {
completionHandler(UNNotificationPresentationOptionNone);
Expand Down

0 comments on commit 45cf6cb

Please sign in to comment.