mirror of
https://github.com/NinjaCheetah/RIT-Dining.git
synced 2026-03-05 05:25: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:
@@ -23,6 +23,7 @@ func scheduleVisitingChefNotif(name: String, location: String, startTime: Date,
|
||||
content.title = "\(name) Is On Campus Today"
|
||||
}
|
||||
content.body = "\(name) will be at \(location) from \(dateDisplay.string(from: startTime))-\(dateDisplay.string(from: endTime))"
|
||||
content.sound = .default
|
||||
|
||||
// Get the time that we're going to schedule the notification for, which is a specified number of hours before the chef
|
||||
// shows up. This is configurable from the notification settings.
|
||||
|
||||
Reference in New Issue
Block a user