Thursday, October 29, 2026
HomeiOS Developmentios - Is it secure to all the time instantiate UI in...

ios – Is it secure to all the time instantiate UI in AppDelegate’s software(_:didFinishLaunchingWithOptions:) technique?

[ad_1]

Since I am not utilizing Storyboard-based format on my iOS challenge, I’m questioning in regards to the following challenge:

AppDelegate’s technique:

software(_:didFinishLaunchingWithOptions:)

Is looking not solely on user-initiated app launch, however on events, the push notifications, VOIP push notifiactions, location-based interactions can name this technique from the background as properly, and since I’m initiating a window and an preliminary view controller there, like so

func software(_ software: UIApplication,
                 didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    window = UIWindow(body: UIScreen.predominant.bounds)
    window!.rootViewController = MainRouter().viewController()
    window!.makeKeyAndVisible()
}

I’m questioning is my software in threat of termination by the OS if, for instance, push notifications, or location-based self-launching name software(_:didFinishLaunchingWithOptions:) when app is in terminated state? Since it’s documented for Voip push notifications that’s is extremely beneficial to keep away from advanced CPU utilization, heavy UI loading, API calling for circumstances when app self-launches from terminated state?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments