Search results for

“DeviceActivityReport”

135 results found

Post

Replies

Boosts

Views

Activity

Reply to Struggling to display DeviceActivityReport view in a widget
[quote='743998022, Frameworks Engineer, /thread/724041?answerId=743998022#743998022'] Unfortunately, displaying a DeviceActivityReport in a widget is not currently supported. Please file an enhancement request using Feedback Assistant. Thanks in advance! [/quote] Hello @Frameworks Engineer! Is there any update on this? It’s now exactly two years since this was brought up…
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’25
Invalid NSExtensionPointIdentifier on App Store Connect upload — ShieldConfiguration + DeviceActivityReport
Bundle ID: com.dalesidebottom.betterus, Team: TK8M23SECQ Trying to submit a v2.0 update with two new FamilyControls extension point identifiers. Both have Distribution entitlements enabled and are correctly in the provisioning profiles. Upload fails with 409 — Invalid NSExtensionPointIdentifier: com.apple.ManagedSettings.ShieldConfigurationExtensionPoint (Error: 7624408a-f318-4b4f-a8b8-1c359923f560) com.apple.deviceactivity.report-extension (Error: 51b40a9e-fc60-402d-9ba7-f29bfbfc84b5) Our existing monitor-extension uploads fine. Has anyone resolved this? The app's been blocked for 6+ weeks.
1
0
176
2w
Reply to HELP ScreenTime API DeviceAcivityReport continious issues
@pravinu that's 100% impossible because Device Activity Report Extension is in the sandbox that can read data but can't write to any storage or make any network calls To protect the user’s privacy, your extension runs in a sandbox. This sandbox prevents your extension from making network requests or moving sensitive content outside the extension’s address space https://developer.apple.com/documentation/deviceactivity/deviceactivityreport
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to Family Activity Picker | Screen Time API features iOS 16
You can use a Label to display the icon and name of apps selected in a FamilyActivityPicker: https://developer.apple.com/documentation/familycontrols/displayingactivitylabels Alternatively, it is also possible to display the localized names and bundle identifiers (as well as usage data) for apps selected by the user in a FamilyActivityPicker by creating a Device Activity report app extension and then displaying a DeviceActivityReport with a filter containing the desired tokens.
Topic: App & System Services SubTopic: General Tags:
Jan ’23
Reply to Screen Time API - Get user total screen time
@Roshan_Owaves Is there any public API that allows retrieving the user’s total Screen Time (like the one shown in Settings)? If yes, what’s the correct approach — should I use 2.DeviceActivityMonitorExtension, FamilyActivitySelection, or another framework? 3 As explained in What's new in Screen Time API (starting at the seventh minute), use the DeviceActivityReport extension to access the data.
Topic: App & System Services SubTopic: General Tags:
Aug ’25
Reply to Detecting Termination and Re-establishing Connection with DeviceActivityReport App Extension
Hey ! We encounter similar issues in the past, and didn't find any proper documented way to monitor the DeviceActivityReport extension state, or to prevent crashes from happening. You can provide a way for your user to reload the view himself in case of crash using regular SwiftUI methods. We've opened several radars, some of them more than a year ago, without any answer at the moment. I would suggest you to do the same, the more they are, the more likely they'll fix it ! Regards !
Topic: App & System Services SubTopic: General Tags:
Sep ’23
Reply to Detecting Termination and Re-establishing Connection with DeviceActivityReport App Extension
I've encountered the same issue, but based on my testing, it's not because of the 100MB limit. It's actually because iOS, when it's running low on resources, prioritizes cleaning up processes with lower priority. DeviceActivityReport falls into that category. You can try playing games or watching videos, and it's almost a guaranteed way to reproduce the issue. However, successfully reloading it is indeed quite challenging. I wonder how other apps handle this?
Topic: App & System Services SubTopic: General Tags:
Sep ’23
Reply to Get Screentime Data without charts
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.
Topic: App & System Services SubTopic: General Tags:
Jan ’23
Reply to DeviceActivityReport lag and performance issues
It sounds like your extension is exceeding its memory limit of 100MB and subsequently getting terminated by the system. I'd recommend trying to reduce your extension's memory usage. We are aware of the gesture limitations of DeviceActivityReports, as they are views rendered by a different process than the parent app. However we'd still really appreciate an enhancement request using Feedback Assistant because it helps our team determine which enhancements and bug fixes to prioritize. Thanks in advance!
Topic: Privacy & Security SubTopic: General Tags:
Mar ’23
FamilyControls entitlement approved, but Provisioning Profile doesn't include deviceActivity & deviceActivityReporting
Hi - appreciate your help in advance! Building a simple habit tracking app. I got approval for FamilyControls distribution. After creating a new provisioning profile with those capabilities enabled, when I try and build in xcode (16.4) using that Profile I get an error stating: Provisioning profile CreateMoreFamilyControlsv2 doesn't include the com.apple.developer.deviceactivity and com.apple.developer.deviceactivity.reporting entitlements I've confirmed bundle identifier matches, Team etc Similarly when i do automatic signing see 3rd screenshot. Not sure what to do at this point, I've heard deviceActivity is automatically applied when family controls is approved but still running into this issue.
2
0
330
Sep ’25
Reply to Is Screen Time trapped inside DeviceActivityReport on purpose?
Earlier I wrote: [quote='878084022, DTS Engineer, /thread/817516?answerId=878084022#878084022'] it certainly looks like this includes Device Activity report extensions. [/quote] I was digging into this some more in a different context, and as part of that I found a clear explanation of how this works. See the doc comments for DeviceActivityReport. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Privacy & Security SubTopic: General Tags:
Mar ’26
Reply to DeviceActivity -> Screen time API. Accessing struct information
The DeviceActivityData.ActivitySegment type is provided only to Device Activity report extensions and cannot be instantiated by clients. You must implement a Device Activity report 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 will be rendered by your extension and the system will provide the chosen DeviceActivityReportScene with data via the scene's makeConfiguration function.
Topic: App & System Services SubTopic: General Tags:
Dec ’22
Reply to DeviceActivityReport — supported way to surface a child's per-app usage on the parent device (third-party cross-device parental control)?
Thanks for the post with all the details and descriptions of what you are trying to accomplish. I’m more interested in the final goal for the app instead of being a replacement for the existing functionality instead of using it to be compliant with the location and local laws? What is the exact boundaries of privacy model for the Screen Time API that you are trying to get to? The designed the FamilyControls and DeviceActivity frameworks with strict data boundaries. Detailed usage data is legally and technically treated as highly sensitive, and the framework intentionally forces that data to remain on the device where it was generated. The DeviceActivityReport extension runs in a highly restricted sandbox explicitly designed this sandbox to be age and location based. Any attempt to exfiltrate the raw data you iterate over in makeConfiguration(representing:) will be blocked by the sandbox, as you saw with the CFPrefsPlistSource denial? For DeviceActivityReport(users: .children) to deliver a ch
Topic: App & System Services SubTopic: General Tags:
Jun ’26
Reply to Screen Time API - Get user total screen time
[quote='797162021, Roshan_Owaves, /thread/797162, /profile/Roshan_Owaves'] If not, is it expected that this data is only available in the Settings app and not exposed to developers? [/quote] Unfortunately, the only way to access this data is within a sandboxed DeviceActivityReport Extension, as you have correctly stated. So there’s no way for you to extract the data and use it for something else. Seems like Apple is keeping that functionality for themselves. You could try filing a feedback request via https://feedbackassistant.apple.com to make sure they’ll consider adding this.
Topic: App & System Services SubTopic: General Tags:
Aug ’25
Reply to Can We Display Screen Time Data in WidgetKit?
[quote='792604021, AleksandrChernyshev, /thread/792604, /profile/AleksandrChernyshev'] Home Screen widget for iOS that displays device usage statistics [/quote] This is not possible unfortunately. The DeviceActivityReport does not work in widgets. But it would be a cool feature for sure! Feedback Requests: FB18927789 FB16409127 I would highly encourage you to file a feedback request on this as well! See also this thread, same issue has already been discussed in 2023 and seems like Apple did not consider the enhancement requests from back then: https://forums.developer.apple.com/forums/thread/724041
Jul ’25
Reply to Struggling to display DeviceActivityReport view in a widget
[quote='743998022, Frameworks Engineer, /thread/724041?answerId=743998022#743998022'] Unfortunately, displaying a DeviceActivityReport in a widget is not currently supported. Please file an enhancement request using Feedback Assistant. Thanks in advance! [/quote] Hello @Frameworks Engineer! Is there any update on this? It’s now exactly two years since this was brought up…
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’25
Invalid NSExtensionPointIdentifier on App Store Connect upload — ShieldConfiguration + DeviceActivityReport
Bundle ID: com.dalesidebottom.betterus, Team: TK8M23SECQ Trying to submit a v2.0 update with two new FamilyControls extension point identifiers. Both have Distribution entitlements enabled and are correctly in the provisioning profiles. Upload fails with 409 — Invalid NSExtensionPointIdentifier: com.apple.ManagedSettings.ShieldConfigurationExtensionPoint (Error: 7624408a-f318-4b4f-a8b8-1c359923f560) com.apple.deviceactivity.report-extension (Error: 51b40a9e-fc60-402d-9ba7-f29bfbfc84b5) Our existing monitor-extension uploads fine. Has anyone resolved this? The app's been blocked for 6+ weeks.
Replies
1
Boosts
0
Views
176
Activity
2w
Reply to HELP ScreenTime API DeviceAcivityReport continious issues
@pravinu that's 100% impossible because Device Activity Report Extension is in the sandbox that can read data but can't write to any storage or make any network calls To protect the user’s privacy, your extension runs in a sandbox. This sandbox prevents your extension from making network requests or moving sensitive content outside the extension’s address space https://developer.apple.com/documentation/deviceactivity/deviceactivityreport
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Family Activity Picker | Screen Time API features iOS 16
You can use a Label to display the icon and name of apps selected in a FamilyActivityPicker: https://developer.apple.com/documentation/familycontrols/displayingactivitylabels Alternatively, it is also possible to display the localized names and bundle identifiers (as well as usage data) for apps selected by the user in a FamilyActivityPicker by creating a Device Activity report app extension and then displaying a DeviceActivityReport with a filter containing the desired tokens.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Screen Time API - Get user total screen time
@Roshan_Owaves Is there any public API that allows retrieving the user’s total Screen Time (like the one shown in Settings)? If yes, what’s the correct approach — should I use 2.DeviceActivityMonitorExtension, FamilyActivitySelection, or another framework? 3 As explained in What's new in Screen Time API (starting at the seventh minute), use the DeviceActivityReport extension to access the data.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Detecting Termination and Re-establishing Connection with DeviceActivityReport App Extension
Hey ! We encounter similar issues in the past, and didn't find any proper documented way to monitor the DeviceActivityReport extension state, or to prevent crashes from happening. You can provide a way for your user to reload the view himself in case of crash using regular SwiftUI methods. We've opened several radars, some of them more than a year ago, without any answer at the moment. I would suggest you to do the same, the more they are, the more likely they'll fix it ! Regards !
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Detecting Termination and Re-establishing Connection with DeviceActivityReport App Extension
I've encountered the same issue, but based on my testing, it's not because of the 100MB limit. It's actually because iOS, when it's running low on resources, prioritizes cleaning up processes with lower priority. DeviceActivityReport falls into that category. You can try playing games or watching videos, and it's almost a guaranteed way to reproduce the issue. However, successfully reloading it is indeed quite challenging. I wonder how other apps handle this?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Get Screentime Data without charts
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.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to DeviceActivityReport lag and performance issues
It sounds like your extension is exceeding its memory limit of 100MB and subsequently getting terminated by the system. I'd recommend trying to reduce your extension's memory usage. We are aware of the gesture limitations of DeviceActivityReports, as they are views rendered by a different process than the parent app. However we'd still really appreciate an enhancement request using Feedback Assistant because it helps our team determine which enhancements and bug fixes to prioritize. Thanks in advance!
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23
FamilyControls entitlement approved, but Provisioning Profile doesn't include deviceActivity & deviceActivityReporting
Hi - appreciate your help in advance! Building a simple habit tracking app. I got approval for FamilyControls distribution. After creating a new provisioning profile with those capabilities enabled, when I try and build in xcode (16.4) using that Profile I get an error stating: Provisioning profile CreateMoreFamilyControlsv2 doesn't include the com.apple.developer.deviceactivity and com.apple.developer.deviceactivity.reporting entitlements I've confirmed bundle identifier matches, Team etc Similarly when i do automatic signing see 3rd screenshot. Not sure what to do at this point, I've heard deviceActivity is automatically applied when family controls is approved but still running into this issue.
Replies
2
Boosts
0
Views
330
Activity
Sep ’25
Reply to Is Screen Time trapped inside DeviceActivityReport on purpose?
Earlier I wrote: [quote='878084022, DTS Engineer, /thread/817516?answerId=878084022#878084022'] it certainly looks like this includes Device Activity report extensions. [/quote] I was digging into this some more in a different context, and as part of that I found a clear explanation of how this works. See the doc comments for DeviceActivityReport. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to DeviceActivity -> Screen time API. Accessing struct information
The DeviceActivityData.ActivitySegment type is provided only to Device Activity report extensions and cannot be instantiated by clients. You must implement a Device Activity report 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 will be rendered by your extension and the system will provide the chosen DeviceActivityReportScene with data via the scene's makeConfiguration function.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to DeviceActivityReport — supported way to surface a child's per-app usage on the parent device (third-party cross-device parental control)?
Thanks for the post with all the details and descriptions of what you are trying to accomplish. I’m more interested in the final goal for the app instead of being a replacement for the existing functionality instead of using it to be compliant with the location and local laws? What is the exact boundaries of privacy model for the Screen Time API that you are trying to get to? The designed the FamilyControls and DeviceActivity frameworks with strict data boundaries. Detailed usage data is legally and technically treated as highly sensitive, and the framework intentionally forces that data to remain on the device where it was generated. The DeviceActivityReport extension runs in a highly restricted sandbox explicitly designed this sandbox to be age and location based. Any attempt to exfiltrate the raw data you iterate over in makeConfiguration(representing:) will be blocked by the sandbox, as you saw with the CFPrefsPlistSource denial? For DeviceActivityReport(users: .children) to deliver a ch
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’26
Reply to Screen Time API - Get user total screen time
[quote='797162021, Roshan_Owaves, /thread/797162, /profile/Roshan_Owaves'] If not, is it expected that this data is only available in the Settings app and not exposed to developers? [/quote] Unfortunately, the only way to access this data is within a sandboxed DeviceActivityReport Extension, as you have correctly stated. So there’s no way for you to extract the data and use it for something else. Seems like Apple is keeping that functionality for themselves. You could try filing a feedback request via https://feedbackassistant.apple.com to make sure they’ll consider adding this.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Can We Display Screen Time Data in WidgetKit?
[quote='792604021, AleksandrChernyshev, /thread/792604, /profile/AleksandrChernyshev'] Home Screen widget for iOS that displays device usage statistics [/quote] This is not possible unfortunately. The DeviceActivityReport does not work in widgets. But it would be a cool feature for sure! Feedback Requests: FB18927789 FB16409127 I would highly encourage you to file a feedback request on this as well! See also this thread, same issue has already been discussed in 2023 and seems like Apple did not consider the enhancement requests from back then: https://forums.developer.apple.com/forums/thread/724041
Replies
Boosts
Views
Activity
Jul ’25