|
@@ -303,6 +303,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
let tokenParts = deviceToken.map { data in String(format: "%02.2hhx", data) }
|
|
let tokenParts = deviceToken.map { data in String(format: "%02.2hhx", data) }
|
|
let token = tokenParts.joined()
|
|
let token = tokenParts.joined()
|
|
print("Device Token: \(token)")
|
|
print("Device Token: \(token)")
|
|
|
|
+ // TODO: pass token to provider
|
|
}
|
|
}
|
|
|
|
|
|
func application(
|
|
func application(
|
|
@@ -313,7 +314,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
|
|
|
func application(
|
|
func application(
|
|
_ application: UIApplication,
|
|
_ application: UIApplication,
|
|
- didReceiveRemoteNotification userInfo: [AnyHashable : Any]) {
|
|
|
|
|
|
+ didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
|
|
|
|
+ // TODO: got notification from apple, check for new messages
|
|
print("notification", userInfo)
|
|
print("notification", userInfo)
|
|
}
|
|
}
|
|
|
|
|