COVIDSafe code from version 1.2

This commit is contained in:
covidsafe-support 2020-05-15 00:47:40 -07:00
parent 3640e52eb2
commit cae9823e44
97 changed files with 1001 additions and 465 deletions

View file

@ -170,15 +170,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
DLog("applicationDidEnterBackground")
Encounter.timestamp(for: .appEnteredBackground)
let magicNumber = Int.random(in: 0 ... PushNotificationConstants.dailyRemPushNotifContents.count - 1)
self.dismissBlackscreen()
stopAccelerometerUpdates()
let center = UNUserNotificationCenter.current()
center.removeAllPendingNotificationRequests()
triggerCalendarLocalPushNotifications(pnContent: PushNotificationConstants.dailyRemPushNotifContents[magicNumber], identifier: "appBackgroundNotifId")
stopAccelerometerUpdates()
}
func applicationWillEnterForeground(_ application: UIApplication) {