Meet the Screen Time API

RSS for tag

Discuss the WWDC21 session Meet the Screen Time API.

Posts under wwdc21-10123 tag

73 Posts

Post

Replies

Boosts

Views

Activity

MonitoringError
I am facing this issue when i start monitoring error The operation couldn’t be completed. (DeviceActivity.DeviceActivityCenter.MonitoringError error 0.) source code in didFinishLaunchingWithOptions center.requestAuthorization{ result in     print(result)       switch result {       case .success():         print("success")                   switch self.center.authorizationStatus {         case .approved:           print("approved")                       let center = DeviceActivityCenter()           do {             try center.startMonitoring(.daily, during: self.schedule)           } catch {             print("error (error.localizedDescription)")           }            case .denied:           print("denied")         case .notDetermined:           print("not determined")         }       case .failure(let error):         print(error.localizedDescription)                 }     }
0
0
705
Jul ’21
When will the ScreenTime API allow control of WiFi HotSpot connections??
Currently ScreenTime does not allow the ability to control if the Personal HotSpot can offer a wifi data connection. If a child's iPhone has ScreenTime DownTime enabled, when that ScreenTime starts the child can connect with another device (ex: TV, Oculus, Xbox, etc.) to the phones Personal HotSpot. The iPhones data connection, via Personal HotSpot, should be able to be controlled by ScreenTime.
0
0
699
Jul ’21
DeviceActivityMonitor startMonitoring error
I created my Device Activity Monitor extension, and then attempted to start monitoring using the code example from the video: let schedule = DeviceActivitySchedule( intervalStart: DateComponents(hour: 0, minute: 0), intervalEnd: DateComponents(hour: 23, minute: 59), repeats: true ) let center = DeviceActivityCenter() do { try center.startMonitoring(.daily, during: schedule) } catch { print(error) } The startMonitoring call always fails for me with the same error: [monitor] Failed to create UsageTrackingAgent proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.UsageTrackingAgent was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.UsageTrackingAgent was invalidated.} Setting up the extension is a very manual process, so I likely missed a step somewhere, but any ideas on what this error might be indicating?
2
0
1.9k
Jul ’21
Screen time api information
is it even possible or do i need to calculate the time myself by using the start and end of the events? i want to present the usage of the child to the parent can i access the screen time or usage of all the applications on the child device? can i access the screen time or usage of my application on the child device or do i need to calculate it myself by using the start and end of events and scheduled?
0
0
933
Jul ’21
Family Controls
// Shield selected applications.     let model = MyModel()     let applications = model.selectionToShield.applications From Example code, I have error cannot find 'MyModel' in scope. Please show me MyModel().
4
0
956
Jul ’21
FamilyControlsError error 4.
Hello, I have created a test project and when requesting authorization with this code from the video: AuthorizationCenter.shared.requestAuthorization { result in             switch result {             case .success():                 print("Authorization granted")                 self.startMonitoring()                 return             case .failure(let error):                 print(error.localizedDescription)             } } I get: The operation couldn’t be completed. (FamilyControls.FamilyControlsError error 4.) I am running the project on a physical device with iOS 15 beta 2 signed in with a child iCloud account. When running: print(AuthorizationCenter.shared.authorizationStatus) I get: Not Determined What does FamilyControlsError error 4. mean? Why am I not able to get the dialog to grant authorization?
1
0
1.1k
Jul ’21
NSExtensionPointIdentifier for DeviceActivityMonitor Extension
We're implementing a DeviceActivityMonitor for the new Screentime APIs, since there is no preset extension of this type, we have created an empty one. However it is not being launched since we don't have a matching NSExtensionPointIdentifier for Screen time or DeviceActivityMonitor. What is the NSExtensionPointIdentifier for this type of extension?
2
0
1.5k
Jul ’21
I am going to Call .FamilyActivityPicker(isPresented, selection: $model.$selectionToDiscourage) -
we are getting error in selection.
Replies
1
Boosts
0
Views
953
Activity
Jul ’21
MonitoringError
I am facing this issue when i start monitoring error The operation couldn’t be completed. (DeviceActivity.DeviceActivityCenter.MonitoringError error 0.) source code in didFinishLaunchingWithOptions center.requestAuthorization{ result in     print(result)       switch result {       case .success():         print("success")                   switch self.center.authorizationStatus {         case .approved:           print("approved")                       let center = DeviceActivityCenter()           do {             try center.startMonitoring(.daily, during: self.schedule)           } catch {             print("error (error.localizedDescription)")           }            case .denied:           print("denied")         case .notDetermined:           print("not determined")         }       case .failure(let error):         print(error.localizedDescription)                 }     }
Replies
0
Boosts
0
Views
705
Activity
Jul ’21
When will the ScreenTime API allow control of WiFi HotSpot connections??
Currently ScreenTime does not allow the ability to control if the Personal HotSpot can offer a wifi data connection. If a child's iPhone has ScreenTime DownTime enabled, when that ScreenTime starts the child can connect with another device (ex: TV, Oculus, Xbox, etc.) to the phones Personal HotSpot. The iPhones data connection, via Personal HotSpot, should be able to be controlled by ScreenTime.
Replies
0
Boosts
0
Views
699
Activity
Jul ’21
Does Managed Setting enable parent app to also block out iOS native features?
Will the Managed Settings framework within ScreenTime API allow parents to manage use and/or block use of native iOS features such as phone use and text messaging along with web URLs and apps?
Replies
0
Boosts
0
Views
413
Activity
Jul ’21
DeviceActivityMonitor startMonitoring error
I created my Device Activity Monitor extension, and then attempted to start monitoring using the code example from the video: let schedule = DeviceActivitySchedule( intervalStart: DateComponents(hour: 0, minute: 0), intervalEnd: DateComponents(hour: 23, minute: 59), repeats: true ) let center = DeviceActivityCenter() do { try center.startMonitoring(.daily, during: schedule) } catch { print(error) } The startMonitoring call always fails for me with the same error: [monitor] Failed to create UsageTrackingAgent proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.UsageTrackingAgent was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.UsageTrackingAgent was invalidated.} Setting up the extension is a very manual process, so I likely missed a step somewhere, but any ideas on what this error might be indicating?
Replies
2
Boosts
0
Views
1.9k
Activity
Jul ’21
Screen Time for your self
Can I use Screen Time's Managed Settings to block access to certain apps on just my device, without the parent control part because the user creates a setup for themselves and for their own device?
Replies
5
Boosts
0
Views
2.3k
Activity
Jul ’21
Screen time api information
is it even possible or do i need to calculate the time myself by using the start and end of the events? i want to present the usage of the child to the parent can i access the screen time or usage of all the applications on the child device? can i access the screen time or usage of my application on the child device or do i need to calculate it myself by using the start and end of events and scheduled?
Replies
0
Boosts
0
Views
933
Activity
Jul ’21
Family Controls
// Shield selected applications.     let model = MyModel()     let applications = model.selectionToShield.applications From Example code, I have error cannot find 'MyModel' in scope. Please show me MyModel().
Replies
4
Boosts
0
Views
956
Activity
Jul ’21
FamilyControlsError error 4.
Hello, I have created a test project and when requesting authorization with this code from the video: AuthorizationCenter.shared.requestAuthorization { result in             switch result {             case .success():                 print("Authorization granted")                 self.startMonitoring()                 return             case .failure(let error):                 print(error.localizedDescription)             } } I get: The operation couldn’t be completed. (FamilyControls.FamilyControlsError error 4.) I am running the project on a physical device with iOS 15 beta 2 signed in with a child iCloud account. When running: print(AuthorizationCenter.shared.authorizationStatus) I get: Not Determined What does FamilyControlsError error 4. mean? Why am I not able to get the dialog to grant authorization?
Replies
1
Boosts
0
Views
1.1k
Activity
Jul ’21
The Screen Time API should allow access to Device Activity on the Parent's Device
I see no immediately obvious technical reason why this should not be the case, but the patent for the tech does not describe being used in this way: See here: https://patents.justia.com/patent/11005986 Even more, there are some beautiful things that can be built with this one change. Pls Apple!
Replies
0
Boosts
0
Views
577
Activity
Jul ’21
Allowing more time for ScreenTime
I've been going over the new ScreenTime APIs and I haven't been able to identify any API that would allow the parent to receive the "allow more time" request from the child's device. Is it even possible to handle that request or is that handled only by the system ScreenTime app?
Replies
0
Boosts
0
Views
906
Activity
Jul ’21
ScreenTime demo app "Homework"
Good afternoon, in the video wwdc21-10123 you mentioned your demo application "Homework", where I can find its source code or examples? Thanks.
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’21
NSExtensionPointIdentifier for DeviceActivityMonitor Extension
We're implementing a DeviceActivityMonitor for the new Screentime APIs, since there is no preset extension of this type, we have created an empty one. However it is not being launched since we don't have a matching NSExtensionPointIdentifier for Screen time or DeviceActivityMonitor. What is the NSExtensionPointIdentifier for this type of extension?
Replies
2
Boosts
0
Views
1.5k
Activity
Jul ’21