mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-05-17 10:45:17 +00:00
COVIDSafe code from version 1.9
This commit is contained in:
parent
2257c542ed
commit
5455912f0a
41 changed files with 4217 additions and 3998 deletions
|
@ -427,14 +427,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||
|
||||
UserDefaults.standard.set(token, forKey: "deviceTokenForAPN")
|
||||
|
||||
let messageRequest = MessageRequest(remotePushToken: token)
|
||||
MessageAPI.getMessages(msgRequest: messageRequest) { (response, error) in
|
||||
MessageAPI.getMessagesIfNeeded(completion: { (response, error) in
|
||||
if let error = error {
|
||||
DLog("Get messages error: \(error.localizedDescription)")
|
||||
return
|
||||
}
|
||||
DLog("Get messages success, device token saved")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue