Search results for

“DeviceActivityReport”

135 results found

Post

Replies

Boosts

Views

Activity

DeviceActivityReport — supported way to surface a child's per-app usage on the parent device (third-party cross-device parental control)?
I'm building a cross-device parental-control app: separate child and parent devices in the same Family Sharing group. I want to show the child's per-app (and per-category) Screen Time usage on the parent device. After extensive testing I can only get the child's total minutes across, and I'd like to confirm the supported architecture before building further on a path the framework may intentionally forbid. Authorization / setup Child device: AuthorizationCenter.shared.requestAuthorization(for: .child) — approved. Confirmed authorized: my app appears under Settings → Screen Time on the child, and the child's own DeviceActivityReport(users: .all) renders full per-app data. Parent device: separate device in the same family. Targets: main app + DeviceActivityReport extension + DeviceActivityMonitor extension, all with com.apple.developer.family-controls and a shared App Group. Physical devices, iOS 26.4.1. Xcode ⟦version⟧. What works: only the child's total minutes reach the parent — and only vi
1
0
315
Jun ’26
Reply to Grabbing the current remaining threshold minutes from a DeviceActivity schedule?
While there is not a way to do this directly using a DeviceActivityCenter or any of the DeviceActivityEvent APIs, you can create a DeviceActivityReport and configure its filter so that your app's DeviceActivityReportExtension gets usage data for the tokens in your DeviceActivityEvent. Your extension can then subtract the totalActivityDuration from the event's threshold in seconds to get the remaining amount of time.
Topic: App & System Services SubTopic: General Tags:
Aug ’22
DeviceActivityReport based views are blank on iOS 16 whith apps built with Xcode 15 beta
Hi ! We are super exited to switch to Xcode 15 when it will be released, but we have a major issue : Apps built with Xcode 15 beta fail to show DeviceActivityReport base view on iOS 16. The following message shows in the console : ] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler} 2023-07-31 14:54:12.568332+0200 Opal[57940:4651501] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2023-07-31 14:54:12.568420+0200 Opal[57940:4651501] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler} We Opened a bug report at the end
8
0
3.2k
Aug ’23
Recently used applications on guardian phone - FamilyControls, DeviceActivityReport
For an iOS app that runs in both child and parent mode across iOS devices. On the child device, with Family Controls enabled using .child permissions via AuthorizationCenter.requestAuthorization(for: .child). Is any way to display a list of recently used apps by the child on the parent (guardian) device, in a privacy-preserving and Apple-compliant way?
1
0
197
May ’25
Reply to How to detect Device activity on iOS ?
Yes, you can use the FamilyControls framework's AuthorizationCenter to request access to the DeviceActivity framework. Once the user grants your app access to Screen Time data, it can use a DeviceActivityReport rendered by your app's Device Activity Report extension to display usage data for that device.
Topic: App & System Services SubTopic: General Tags:
Feb ’23
Reply to [iOS 17] Screen Time connection breaks randomly multiple times per day
We experience the same issue on our app, and we filled a bug report as well -> FB12235755. The issue seems to happen when screentime permission have been granted prior to iOS 17. In our testing, everything based on DeviceActivityReport fails to render until you reinstall the app. here's what we see in the logs: Failed to discover the client's extension: Error Domain=DeviceActivityReportService.ReportViewController.ClientError Code=2 (null) VS terminated with error: Error Domain=_UIViewServiceErrorDomain Code=1 (null) UserInfo={Terminated=disconnect method} I agree this is a big concern for us as well, we don't want to ask all of our users to reinstall the app after updating to iOS 17. This is also showing how little control we have on DeviceActivityReport views, we cannot know if they are loading, if they errored with the public API, we opened a enhancement radar on this about a year ago (FB10754858).
Topic: App & System Services SubTopic: General Tags:
Jun ’23
Reply to Token Selection from DeviceActivityReport
[quote='729818021, CaliforniaJay, /thread/729818, /profile/CaliforniaJay'] Is there ay way to accomplish passing a token from the sandboxed report extension to my app? [/quote] Unfortunately, this is not possible. As you have stated, tokens are not sensitive data, but Screen Time usage data is. So Apple is not allowing ANY data to leave the sandboxed DeviceActivityReport :/
Topic: App & System Services SubTopic: General Tags:
Aug ’25
Reply to DeviceActivityReport based views are blank on iOS 16 whith apps built with Xcode 15 beta
We have also filed a bug report (FB13056211) for the exact same issue. This is a MAJOR problem for all apps using DeviceActivityReport views. We hope it's going to be fixed in time for the iOS 17 official release!
Replies
Boosts
Views
Activity
Aug ’23
Reply to [iOS 17] Screen Time connection breaks randomly multiple times per day
Same issues here. It seems there hasn't been a solution yet? Getting Failed to discover the client's extension: Error Domain=DeviceActivityReportService.ReportViewController.ClientError Code=2 (null) when just trying to render the view on my iOS 17 iPhone, and the DeviceActivityReport View is rendering.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to DeviceActivityMonitor is overcounting screen time for users on iOS 17.6.1
Hey we are experiencing the same issue here ! With the exact same context, we asked our user to un-select Share Across Devices, and they get notifications showing a lot more screen time then is even shown within the DeviceActivityReport
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Device Activity Report View Size and Background
Hi @caleb4hzglory, yh im having same issue as @JosephCa not being able to see anything from my content view when i add the DeviceActivityReport. Can you share with us some code snippet or idea how you get working on physical device please thank you
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to DeviceActivityReport based views are blank on iOS 16 whith apps built with Xcode 15 beta
Hi everyone ! Apple just announced that Xcode 15 will be mandatory to publish app updates starting April 2024 (https://developer.apple.com/ios/submit/) This is making this bug critical as we will have to drop iOS 16 if we want to update our apps containing DeviceActivityReport.
Replies
Boosts
Views
Activity
Feb ’24
DeviceActivityReport — supported way to surface a child's per-app usage on the parent device (third-party cross-device parental control)?
I'm building a cross-device parental-control app: separate child and parent devices in the same Family Sharing group. I want to show the child's per-app (and per-category) Screen Time usage on the parent device. After extensive testing I can only get the child's total minutes across, and I'd like to confirm the supported architecture before building further on a path the framework may intentionally forbid. Authorization / setup Child device: AuthorizationCenter.shared.requestAuthorization(for: .child) — approved. Confirmed authorized: my app appears under Settings → Screen Time on the child, and the child's own DeviceActivityReport(users: .all) renders full per-app data. Parent device: separate device in the same family. Targets: main app + DeviceActivityReport extension + DeviceActivityMonitor extension, all with com.apple.developer.family-controls and a shared App Group. Physical devices, iOS 26.4.1. Xcode ⟦version⟧. What works: only the child's total minutes reach the parent — and only vi
Replies
1
Boosts
0
Views
315
Activity
Jun ’26
Reply to Grabbing the current remaining threshold minutes from a DeviceActivity schedule?
While there is not a way to do this directly using a DeviceActivityCenter or any of the DeviceActivityEvent APIs, you can create a DeviceActivityReport and configure its filter so that your app's DeviceActivityReportExtension gets usage data for the tokens in your DeviceActivityEvent. Your extension can then subtract the totalActivityDuration from the event's threshold in seconds to get the remaining amount of time.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to How to show Application Icons within usage report - DeviceActivityReport
You can use the Applications returned from your DeviceActivityReport extension, and in your app use the token from those applications to initialize labels. See more about displaying activity labels here. Label(applicationTokenFromYourExtension).labelStyle(.iconOnly) should get you just the application icon, if you wish.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’22
DeviceActivityReport based views are blank on iOS 16 whith apps built with Xcode 15 beta
Hi ! We are super exited to switch to Xcode 15 when it will be released, but we have a major issue : Apps built with Xcode 15 beta fail to show DeviceActivityReport base view on iOS 16. The following message shows in the console : ] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler} 2023-07-31 14:54:12.568332+0200 Opal[57940:4651501] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2023-07-31 14:54:12.568420+0200 Opal[57940:4651501] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler} We Opened a bug report at the end
Replies
8
Boosts
0
Views
3.2k
Activity
Aug ’23
Recently used applications on guardian phone - FamilyControls, DeviceActivityReport
For an iOS app that runs in both child and parent mode across iOS devices. On the child device, with Family Controls enabled using .child permissions via AuthorizationCenter.requestAuthorization(for: .child). Is any way to display a list of recently used apps by the child on the parent (guardian) device, in a privacy-preserving and Apple-compliant way?
Replies
1
Boosts
0
Views
197
Activity
May ’25
Reply to How to detect Device activity on iOS ?
Yes, you can use the FamilyControls framework's AuthorizationCenter to request access to the DeviceActivity framework. Once the user grants your app access to Screen Time data, it can use a DeviceActivityReport rendered by your app's Device Activity Report extension to display usage data for that device.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Label from ApplicationToken Inside of DeviceActivityReport Not Showing
UPDATE: So it seems that the reason this is failing is because the Family Controls entitlement is required by the DeviceActivityReport Extension as well. When I add the development entitlement back to that, it works properly. The ActivityMonitorExtension also seems to require the capability in order to work properly. Had to send 2 new capability requests...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to [iOS 17] Screen Time connection breaks randomly multiple times per day
We experience the same issue on our app, and we filled a bug report as well -> FB12235755. The issue seems to happen when screentime permission have been granted prior to iOS 17. In our testing, everything based on DeviceActivityReport fails to render until you reinstall the app. here's what we see in the logs: Failed to discover the client's extension: Error Domain=DeviceActivityReportService.ReportViewController.ClientError Code=2 (null) VS terminated with error: Error Domain=_UIViewServiceErrorDomain Code=1 (null) UserInfo={Terminated=disconnect method} I agree this is a big concern for us as well, we don't want to ask all of our users to reinstall the app after updating to iOS 17. This is also showing how little control we have on DeviceActivityReport views, we cannot know if they are loading, if they errored with the public API, we opened a enhancement radar on this about a year ago (FB10754858).
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to Token Selection from DeviceActivityReport
[quote='729818021, CaliforniaJay, /thread/729818, /profile/CaliforniaJay'] Is there ay way to accomplish passing a token from the sandboxed report extension to my app? [/quote] Unfortunately, this is not possible. As you have stated, tokens are not sensitive data, but Screen Time usage data is. So Apple is not allowing ANY data to leave the sandboxed DeviceActivityReport :/
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25