applicationDidBecomeActive execution

applicationDidBecomeActive(_ application: UIApplication) method execute when i scroll notification controller view from up side to down and also execute when i remove that controller.

But my query is this method execute when we remove the controller not when applicationWillResignActive state.

Replies

Not clear. Could you explain.


Is notificaion controller a controller you create in your app ? Or the system notification ?

You remoe the controller ? Or do you close it ?


But my query is this method execute when we remove the controller

Is it what you expect or what you get ?

not when applicationWillResignActive state.

didBecomeActive should not trigger when you resignActive.

It's a system controller where we get the app notification In other word Home screen of when we lock the device. And i'm removing the controller from my app via scroll with finger.

And i'm using swift - 4 to develop app.