Notification plays critical sound at max volume.

This commit is contained in:
Aaron
2021-01-24 18:25:46 -05:00
parent 49576828b6
commit 7a94b3fbf8
2 changed files with 14 additions and 13 deletions
+13 -13
View File
@@ -83,25 +83,25 @@
4FF0683D25A5F18700304E6B /* ProjectClock */ = {
isa = PBXGroup;
children = (
7C5DAE9B25AF812200E44C52 /* clock.png */,
4FF0684C25A5F18800304E6B /* Info.plist */,
7C83962D25AF34F00027A94C /* ProjectClock.entitlements */,
4FF0684925A5F18800304E6B /* LaunchScreen.storyboard */,
4FF0684725A5F18800304E6B /* Assets.xcassets */,
4FF0683E25A5F18700304E6B /* AppDelegate.swift */,
4FF0684225A5F18700304E6B /* AccountViewController.swift */,
4FA419AE25AF93EC004CE0FC /* AlarmViewController.swift */,
4F8A607025A9160400D88DC3 /* AddAlarmViewController.swift */,
F0DF7C0625BCD9FC0064A26B /* StopwatchViewController.swift */,
7C83963825AF68980027A94C /* DebugViewController.swift */,
7C12BC7725BE25C000E5659C /* Notification.swift */,
4FD642DF25B4D5F30069171E /* AlarmActivationViewController.swift */,
4FD642D225B48C380069171E /* AlarmActivator.swift */,
4FA419AE25AF93EC004CE0FC /* AlarmViewController.swift */,
4FF0683E25A5F18700304E6B /* AppDelegate.swift */,
4FF0684725A5F18800304E6B /* Assets.xcassets */,
7C5DAE9B25AF812200E44C52 /* clock.png */,
7C83963825AF68980027A94C /* DebugViewController.swift */,
4FF0684C25A5F18800304E6B /* Info.plist */,
4FF0684925A5F18800304E6B /* LaunchScreen.storyboard */,
4FF0684425A5F18700304E6B /* Main.storyboard */,
7C83963525AF375B0027A94C /* NotificationLogic.swift */,
4F98955125A9260400F51321 /* Net.swift */,
4F509BD125AE22D100726227 /* Models.swift */,
C7E638E725B88F8B00799512 /* MathExpressions.swift */,
4F509BD125AE22D100726227 /* Models.swift */,
4F98955125A9260400F51321 /* Net.swift */,
7C12BC7725BE25C000E5659C /* Notification.swift */,
7C83963525AF375B0027A94C /* NotificationLogic.swift */,
7C83962D25AF34F00027A94C /* ProjectClock.entitlements */,
F0DF7C0625BCD9FC0064A26B /* StopwatchViewController.swift */,
4FD642DA25B4B7F60069171E /* Utils.swift */,
);
path = ProjectClock;
+1
View File
@@ -28,6 +28,7 @@ class Notification {
content.title = alarm.text
content.subtitle = formatter1.string(from: today)
content.body = "Wake method: \(alarm.wakeMethod.name)"
content.sound = UNNotificationSound.defaultCriticalSound(withAudioVolume: 1.0)
// Notification image content
let imageName = "clock"