Skip to content

Commit

Permalink
Migrate to latest UNUserNotificationCenter API for displaying notific…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
sitomani committed Feb 13, 2024
1 parent 39a0ebb commit 13906fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 4champ/Scenes/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ extension MainViewController: UNUserNotificationCenterDelegate {
func userNotificationCenter(_ center: UNUserNotificationCenter,
willPresent notification: UNNotification,
withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
completionHandler([.alert, .badge, .sound])
completionHandler([.badge, .sound])
}

func userNotificationCenter(_ center: UNUserNotificationCenter,
Expand Down

0 comments on commit 13906fb

Please sign in to comment.