Skip to content

Commit 09661d7

Browse files
committed
fix(ios): cleaning firebase-messaging-core iOS build warnings
1 parent 6698bb9 commit 09661d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase-messaging-core/platforms/ios/src/NSCUNUserNotificationCenterDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class NSCUNUserNotificationCenterDelegate: NSObject, UNUserNotificationCe
7676

7777
if (NSCFirebaseMessagingCore.showNotificationsWhenInForeground || notification.request.content.userInfo["gcm.notification.showWhenInForeground"] as? String == "true" || notification.request.content.userInfo["showWhenInForeground"] as? Bool ?? false ||
7878
aps != nil && aps?["showWhenInForeground"] as? Bool ?? false) {
79-
options = UNNotificationPresentationOptions(rawValue: UNNotificationPresentationOptions.alert.rawValue | UNNotificationPresentationOptions.sound.rawValue | UNNotificationPresentationOptions.badge.rawValue )
79+
options = UNNotificationPresentationOptions(rawValue: UNNotificationPresentationOptions.list.rawValue | UNNotificationPresentationOptions.banner.rawValue | UNNotificationPresentationOptions.sound.rawValue | UNNotificationPresentationOptions.badge.rawValue )
8080
}
8181

8282
if (notification.request.content.userInfo["gcm.message_id"] != nil) {

0 commit comments

Comments
 (0)