I have installed amplitude in ios project. I am able to send events to amplitude. I am able to see the events in dashboard.
But i am not able to see the app close event in dashboard.
Pleas find attached code below.
func applicationWillTerminate(_ application: UIApplication) {
Amplitude.instance()?.logEvent("APP_CLOSED")
}
From the following apple documentation, https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623111-applicationwillterminate
Your implementation of this method has approximately five seconds to perform any tasks and return. If the method does not return before time expires, the system may kill the process altogether.
I am guessing that the process of logging this particular event takes more than 5 seconds to execute and hence is forcefully terminated.