fix(messaging, ios): call original delegate when intercepting willPresentNotification (#4088)

This commit is contained in:
Trần Trung Kiên
2020-08-15 06:07:34 +07:00
committed by GitHub
parent 6e7c3b2002
commit 62ee961d6e

View File

@@ -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);