Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ios/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ class AppDelegate: ExpoAppDelegate, UNUserNotificationCenterDelegate {

func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification,
withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
completionHandler([.sound, .badge, .list, .banner])
// Suppress all iOS-side presentation for the FCM remote when foregrounded.
// Rainbow's foreground notification UI is handled by notifee (see foregroundHandler.ts);
// letting iOS also present from the FCM payload would duplicate Notification Center entries.
completionHandler([])
}

override func application(_ app: UIApplication, open url: URL,
Expand Down
Loading