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 (#4088)
  • Loading branch information
ttkien authored Aug 14, 2020
1 parent 6e7c3b2 commit 62ee961
Showing 1 changed file with 3 additions and 1 deletion.
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 62ee961

Please sign in to comment.