Hi, regarding the ScreenTime API or another API is there a way to count the time spent since the user unlocked their iPhone regardless of which app they are using?, and is it possible to detect while your app has/hasn't been launched and is/isn't running in the background?
Use case: App detects time spent using device has exceeded certain threshold and notifies the user with a Notification.
Note: I'm not interested in Family Control kind of app.
Thanks!