Add native iOS notifications (#64)
This commit is contained in:
@@ -16,6 +16,7 @@ final class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
window.rootViewController = context.makeRootController()
|
||||
window.makeKeyAndVisible()
|
||||
self.window = window
|
||||
context.notifications.start()
|
||||
context.showStartupErrorIfNeeded()
|
||||
if let url = launchOptions?[.url] as? URL {
|
||||
context.route(widgetURL: url)
|
||||
@@ -33,5 +34,10 @@ final class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
func applicationDidBecomeActive(_ application: UIApplication) {
|
||||
WidgetCenter.shared.reloadAllTimelines()
|
||||
context?.notifications.applicationDidBecomeActive()
|
||||
}
|
||||
|
||||
func applicationDidEnterBackground(_ application: UIApplication) {
|
||||
context?.notifications.applicationDidEnterBackground()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user