run

()

return

lifecycleDelegate

application

application

didFinishLaunchingWithOptions

launchOptions

??

[:])

func

application

application

UIApplication

didRegisterForRemoteNotificationsWithDeviceToken

deviceToken

Data

lifecycleDelegate

application

application

didRegisterForRemoteNotificationsWithDeviceToken

deviceToken

func

application

application

UIApplication

didFailToRegisterForRemoteNotificationsWithError

error

Error

lifecycleDelegate

application

application

didFailToRegisterForRemoteNotificationsWithError