What should I use to track how long a user has been using my app on iOS devices?
I think I can do it like this:
- Registration time at application launch (
application:didFinishLaunchingWithOptions:) - Registration time at the end of the application (
applicationWillTerminate:) - List item
Send a report (start / exit time pairs) to the server and the countdown time spent in the application
Do you have any better ideas?
It is important that the network and resources are efficient
(do not send large amounts of data or consume iOS resources for complex computing operations.)
source
share