mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 13:05:21 +00:00
COVIDSafe code from version 1.9 (#18)
This commit is contained in:
parent
2257c542ed
commit
3b1d8fa3f4
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