How do I identify if the app was in the background when the home button was clicked and not by external events (sms, call, video call)?
If the application is sent to background,
applicationDidEnterBackground
will be getting called.
If it is by sms, call , video call, then,
applicationWillResignActive
will be getting called first. U can identify with that.