Hi everyone, I'm trying to fetch the Data for the users Screentime. I've seen an example on how to get it using PieCharts. Is it possible to simply get the data itself? I don't really need the charts anyway.
Thanks in advance
Hi everyone, I'm trying to fetch the Data for the users Screentime. I've seen an example on how to get it using PieCharts. Is it possible to simply get the data itself? I don't really need the charts anyway.
Thanks in advance
In order to preserve the user's privacy, your app cannot fetch device activity data directly. Instead, you must implement a Device Activity report app extension that conforms to the DeviceActivityReportExtension protocol. In order to create a new extension, click File > New > Target... > iOS > Device Activity Report Extension in Xcode. Your app can then create and display a DeviceActivityReport. The UI for this view can be as simple as some text displaying the total usage time or as complex as a pie chart.