mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
fix(messaging, ios): call original delegate when intercepting willPresentNotification (#4088)
This commit is contained in:
@@ -75,7 +75,9 @@ struct {
|
||||
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user