|
|
@ -15,6 +15,7 @@ import FirebaseMessaging |
|
|
|
import BRYXBanner |
|
|
|
import Fabric |
|
|
|
import Crashlytics |
|
|
|
import AlamofireNetworkActivityLogger |
|
|
|
|
|
|
|
@UIApplicationMain |
|
|
|
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate { |
|
|
@ -41,6 +42,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD |
|
|
|
// show the dialog at a more appropriate time move this registration accordingly. |
|
|
|
// [START register_for_notifications] |
|
|
|
|
|
|
|
NetworkActivityLogger.shared.startLogging() |
|
|
|
NetworkActivityLogger.shared.level = .debug |
|
|
|
if #available(iOS 10.0, *) { |
|
|
|
// For iOS 10 display notification (sent via APNS) |
|
|
|
UNUserNotificationCenter.current().delegate = self |
|
|
|