mirror of
https://github.com/samsonjs/Advanced-NSOperations.git
synced 2026-03-25 08:25:47 +00:00
26 lines
788 B
Swift
26 lines
788 B
Swift
/*
|
||
Copyright (C) 2015 Apple Inc. All Rights Reserved.
|
||
See LICENSE.txt for this sample’s licensing information
|
||
|
||
Abstract:
|
||
The app delegate. This, by design, has almost no implementation.
|
||
*/
|
||
|
||
import UIKit
|
||
|
||
@UIApplicationMain
|
||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||
// MARK: Properties
|
||
|
||
var window: UIWindow?
|
||
|
||
// MARK: UIApplicationDelegate
|
||
|
||
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
|
||
RemoteNotificationCondition.didFailToRegister(error: error as NSError)
|
||
}
|
||
|
||
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
|
||
RemoteNotificationCondition.didReceiveNotificationToken(token: deviceToken)
|
||
}
|
||
}
|