Compare commits
1 Commits
trie
...
tyiu/notif
| Author | SHA1 | Date | |
|---|---|---|---|
|
3383b7b7a6
|
@@ -53,7 +53,7 @@ class AppDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDele
|
|||||||
// Handle the notification in the foreground state
|
// Handle the notification in the foreground state
|
||||||
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
|
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
|
||||||
// Display the notification in the foreground
|
// Display the notification in the foreground
|
||||||
completionHandler([.alert, .sound, .badge])
|
completionHandler([.banner, .list, .sound, .badge])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user