|
@@ -63,7 +63,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
do {
|
|
do {
|
|
try reachability.startNotifier()
|
|
try reachability.startNotifier()
|
|
} catch {
|
|
} catch {
|
|
- print("Unable to start notifier")
|
|
|
|
|
|
+ logger.error("Unable to start notifier")
|
|
}
|
|
}
|
|
|
|
|
|
let notificationOption = launchOptions?[.remoteNotification]
|
|
let notificationOption = launchOptions?[.remoteNotification]
|
|
@@ -333,15 +333,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
|
|
|
func application(
|
|
func application(
|
|
_ application: UIApplication,
|
|
_ application: UIApplication,
|
|
- didFailToRegisterForRemoteNotificationsWithError error: Error) {
|
|
|
|
- print("Notifications: Failed to register: \(error)")
|
|
|
|
|
|
+ didFailToRegisterForRemoteNotificationsWithError error: Error) {
|
|
|
|
+ logger.error("Notifications: Failed to register: \(error)")
|
|
}
|
|
}
|
|
|
|
|
|
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
|
|
// TODO: got notification from apple, check for new messages
|
|
- print("Notifications: didReceiveRemoteNotification", userInfo)
|
|
|
|
|
|
+ logger.verbose("Notifications: didReceiveRemoteNotification \(userInfo)")
|
|
}
|
|
}
|
|
|
|
|
|
private func userNotificationCenter(_: UNUserNotificationCenter, willPresent _: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
|
|
private func userNotificationCenter(_: UNUserNotificationCenter, willPresent _: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
|