|
|
@@ -61,3 +61,20 @@ private extension Swinject.Resolver {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
|
|
|
+ func userNotificationCenter(
|
|
|
+ _: UNUserNotificationCenter,
|
|
|
+ willPresent _: UNNotification,
|
|
|
+ withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions)
|
|
|
+ -> Void
|
|
|
+ ) {
|
|
|
+ completionHandler([.banner, .badge, .sound])
|
|
|
+ }
|
|
|
+
|
|
|
+ func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
|
|
+ // Override point for customization after application launch.
|
|
|
+ UNUserNotificationCenter.current().delegate = self
|
|
|
+ return true
|
|
|
+ }
|
|
|
+}
|