-1

I am developing an application with React native that shows how much time users spend on other applications on the phone.

I can access this data using the react-native-usage-stats package for Android. But I could not find any package for IOS. Frankly, I could not find any documentation or an example of how to do it. Is there a method you can recommend?

3
  • This information is not available to apps on iOS. It would be a privacy violation and the information is available to the user already in settings
    – Paulw11
    Commented Jan 16 at 12:18
  • Thank you for your answer. I am developing an application that will be used for education with the users' approval. I need this application to track how much time students spend on their phones, create a report about it, and present it to their teachers. And I saw that similar applications are available in the AppStore. If there was a privacy vulnerability, I think AppStore would detect it. Commented Jan 16 at 12:35
  • You can use DeviceActivity to set policy and generate reports but the usage data will not be available to your app.
    – Paulw11
    Commented Jan 16 at 12:45

0

Browse other questions tagged or ask your own question.