mirror of
https://github.com/NinjaCheetah/RIT-Dining.git
synced 2026-03-05 13:35:29 -05:00
Add sounds for visiting chef notifications
Oops, I missed that this had to be manually set up. Now requests the .sound permission and sets the default sound for notifications when scheduling them.
This commit is contained in:
@@ -129,7 +129,7 @@ struct VisitingChefPush: View {
|
||||
Task {
|
||||
let center = UNUserNotificationCenter.current()
|
||||
do {
|
||||
try await center.requestAuthorization(options: [.alert])
|
||||
try await center.requestAuthorization(options: [.alert, .sound])
|
||||
} catch {
|
||||
print(error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user