Closed gbusto closed 5 years ago
Here is a link to an example of how to use the functions in AppDelegate to track app level events: https://stackoverflow.com/questions/49030947/app-will-terminate-notification.
init() { NotificationCenter.default.addObserver(self, selector: #selector(applicationWillTerminate(notification:)), name: UIApplication.willTerminateNotification, object: nil) } @objc func applicationWillTerminate(notification: Notification) { // Notification received. } deinit { NotificationCenter.default.removeObserver(self) }
Here is a link to an example of how to use the functions in AppDelegate to track app level events: https://stackoverflow.com/questions/49030947/app-will-terminate-notification.