How do we measure device usage through an app? I see apps like moment keeping track of how much the phone was in use in last 24 hours (as total screen time). Is there an API from iOS SDK or infer through certain signals in iOS?
Basically want to able to answer - how long have you used (including but not limited to calls, imessages, apps, games) your phone today? I am happy to infer it but need to know what signals to look for.