@@ -124,6 +124,18 @@ fileprivate extension StoredDosingDecision {
124124 pumpBatteryChargeRemaining: 3.5 ,
125125 basalDeliveryState: . initiatingTempBasal,
126126 bolusState: . none)
127+ let notificationSettings = NotificationSettings ( authorizationStatus: . authorized,
128+ soundSetting: . enabled,
129+ badgeSetting: . enabled,
130+ alertSetting: . enabled,
131+ notificationCenterSetting: . enabled,
132+ lockScreenSetting: . enabled,
133+ carPlaySetting: . enabled,
134+ alertStyle: . banner,
135+ showPreviewsSetting: . always,
136+ criticalAlertSetting: . enabled,
137+ providesAppNotificationSettings: true ,
138+ announcementSetting: . enabled)
127139 let deviceSettings = StoredDosingDecision . DeviceSettings ( name: " Device Name " ,
128140 systemName: " Device System Name " ,
129141 systemVersion: " Device System Version " ,
@@ -144,19 +156,9 @@ fileprivate extension StoredDosingDecision {
144156 recommendedTempBasal: recommendedTempBasal,
145157 recommendedBolus: recommendedBolus,
146158 pumpManagerStatus: pumpManagerStatus,
147- notificationSettings: historicalNotificationSettings ,
159+ notificationSettings: notificationSettings ,
148160 deviceSettings: deviceSettings,
149161 errors: nil ,
150162 syncIdentifier: UUID ( ) . uuidString)
151163 }
152164}
153-
154- fileprivate let historicalNotificationSettingsBase64 = " YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V " +
155- " 5ZWRBcmNoaXZlctEICVRyb290gAGjCwwgVSRudWxs3g0ODxAREhMUFRYXGBkaGxsbGxscHBwdHhsfHBtcYmFkZ2VTZXR0aW5nXxATYXV0aG9yaXphdGlvblN0YXR " +
156- " 1c1xzb3VuZFNldHRpbmdfEBlub3RpZmljYXRpb25DZW50ZXJTZXR0aW5nXxAUY3JpdGljYWxBbGVydFNldHRpbmdfEBNzaG93UHJldmlld3NTZXR0aW5nXxAPZ3J " +
157- " vdXBpbmdTZXR0aW5nXmNhclBsYXlTZXR0aW5nXxAfcHJvdmlkZXNBcHBOb3RpZmljYXRpb25TZXR0aW5nc1YkY2xhc3NfEBFsb2NrU2NyZWVuU2V0dGluZ1phbGV " +
158- " ydFN0eWxlXxATYW5ub3VuY2VtZW50U2V0dGluZ1xhbGVydFNldHRpbmcQAhAACIACEAHSISIjJFokY2xhc3NuYW1lWCRjbGFzc2VzXxAWVU5Ob3RpZmljYXRpb25 " +
159- " TZXR0aW5nc6IlJl8QFlVOTm90aWZpY2F0aW9uU2V0dGluZ3NYTlNPYmplY3QACAARABoAJAApADIANwBJAEwAUQBTAFcAXQB6AIcAnQCqAMYA3QDzAQUBFAE2AT0 " +
160- " BUQFcAXIBfwGBAYMBhAGGAYgBjQGYAaEBugG9AdYAAAAAAAACAQAAAAAAAAAnAAAAAAAAAAAAAAAAAAAB3w== "
161- fileprivate let historicalNotificationSettingsData = Data ( base64Encoded: historicalNotificationSettingsBase64) !
162- fileprivate let historicalNotificationSettings = try ! NSKeyedUnarchiver . unarchiveTopLevelObjectWithData ( historicalNotificationSettingsData) as! UNNotificationSettings
0 commit comments