Meet the Screen Time API

RSS for tag

Discuss the WWDC21 session Meet the Screen Time API.

Posts under wwdc21-10123 tag

28 Posts

Post

Replies

Boosts

Views

Activity

Shielding Specific Contacts via Screen Time Communication Limits
Hello, Thank you Chris & Nolan for the wonderful Screen Time API demo! I would like to apply this new functionality to limit a child's communication with a specific contact selected by a parent during, "Homework" hours. I would like to configure the shield to ONLY restrict the chat log of the specified contact, not the entire Messages application. At the end of "Homework" hours I would like the child to be able to view any missed messages or calls they received, while this contact was restricted. It does not appear that a parent can specify communication limits within managed settings without using lockCellularPlan or shielding the entire app with the familyactivitypicker. Can we configure downtime restrictions using this API? If you could point me to the correct part of the framework so I can further investigate how to implement this, that would be very helpful. Thank you!
0
0
1.3k
Feb ’22
Can I get code examples of Homework app that was shown on WWDC21?
Hello, Apple! Thanks for sharing Screen Time API! Together with my team we want to develop one cool app, that is based on parent-child relationship. Unfortunately, we couldn't understand completely how Screen Time API works according documentations. Could you please provide us a code example of Homework demo app or maybe guid us on what kind of steps we must do in order to get next functionalities: Block apps on child device until parent allow to access them. Listen what apps are running on child device. We need integrate backend part that way that child will be able to deserve by his own ability to use other apps for some time. Is it possible to make such functionality in background? Looking forward for your response! Best regards Dmitriy
4
0
3.9k
Feb ’22
Is it possible to request FamilyControls authorization on simulator?
I'm getting a FamilyControlsError Code=3 when requesting authorization from a simulator signed in with a child iCloud account. When requesting authorization from a simulator signed in with a parent iCloud account I receive the expected FamilyControlsError Code=2. There's not a lot of info on resolving these errors, and the code is pretty simple: func requestAuthorization() {     AuthorizationCenter.shared.requestAuthorization { result in         switch result {         case .success():             print("Sucess...")         case .failure(let error):             print("Failed... \(error)")         }     } }
8
0
3.6k
Jan ’22
Event threshold callbacks are inconsistent
The event threshold callbacks are inconsistent. We receive the callback 30mins to 1hour late after scheduling or it stops coming suddenly. Is there any limit how many callbacks will be coming per hour or day? Sometimes I don't get the callback at all. Sometimes it works properly for the whole day(Same code without any change). Additional note: Sometimes I don't receive the schedule start call-back but the event threshold.
1
0
1.5k
Jan ’22
How does child can unblock apps for some period of time using Screen Time API?
I have created the app that uses Screen Time API (Device Activity, Managed Settings and Family Control). I have allowed on child device block and unblock apps that are selected in familyPicker, but I have to add ability to unblock these apps for some period of time. I have tried this:             do {                     center.stopMonitoring()                     try center.startMonitoring(.unblock, during: schedule, events: [.encouraged: DeviceActivityEvent(                         applications: applications.applicationTokens,                         threshold: DateComponents(second: 30)                     )])                     print("Unblock apps")                 } catch {                     print("Error")                 } Maybe I have to use another way to do it? but this doesn't work for me.
1
0
1.3k
Jan ’22
Shielding Specific Contacts via Screen Time Communication Limits
Hello, Thank you Chris & Nolan for the wonderful Screen Time API demo! I would like to apply this new functionality to limit a child's communication with a specific contact selected by a parent during, "Homework" hours. I would like to configure the shield to ONLY restrict the chat log of the specified contact, not the entire Messages application. At the end of "Homework" hours I would like the child to be able to view any missed messages or calls they received, while this contact was restricted. It does not appear that a parent can specify communication limits within managed settings without using lockCellularPlan or shielding the entire app with the familyactivitypicker. Can we configure downtime restrictions using this API? If you could point me to the correct part of the framework so I can further investigate how to implement this, that would be very helpful. Thank you!
Replies
0
Boosts
0
Views
1.3k
Activity
Feb ’22
Can I get code examples of Homework app that was shown on WWDC21?
Hello, Apple! Thanks for sharing Screen Time API! Together with my team we want to develop one cool app, that is based on parent-child relationship. Unfortunately, we couldn't understand completely how Screen Time API works according documentations. Could you please provide us a code example of Homework demo app or maybe guid us on what kind of steps we must do in order to get next functionalities: Block apps on child device until parent allow to access them. Listen what apps are running on child device. We need integrate backend part that way that child will be able to deserve by his own ability to use other apps for some time. Is it possible to make such functionality in background? Looking forward for your response! Best regards Dmitriy
Replies
4
Boosts
0
Views
3.9k
Activity
Feb ’22
Is it possible to request FamilyControls authorization on simulator?
I'm getting a FamilyControlsError Code=3 when requesting authorization from a simulator signed in with a child iCloud account. When requesting authorization from a simulator signed in with a parent iCloud account I receive the expected FamilyControlsError Code=2. There's not a lot of info on resolving these errors, and the code is pretty simple: func requestAuthorization() {     AuthorizationCenter.shared.requestAuthorization { result in         switch result {         case .success():             print("Sucess...")         case .failure(let error):             print("Failed... \(error)")         }     } }
Replies
8
Boosts
0
Views
3.6k
Activity
Jan ’22
Event threshold callbacks are inconsistent
The event threshold callbacks are inconsistent. We receive the callback 30mins to 1hour late after scheduling or it stops coming suddenly. Is there any limit how many callbacks will be coming per hour or day? Sometimes I don't get the callback at all. Sometimes it works properly for the whole day(Same code without any change). Additional note: Sometimes I don't receive the schedule start call-back but the event threshold.
Replies
1
Boosts
0
Views
1.5k
Activity
Jan ’22
How does child can unblock apps for some period of time using Screen Time API?
I have created the app that uses Screen Time API (Device Activity, Managed Settings and Family Control). I have allowed on child device block and unblock apps that are selected in familyPicker, but I have to add ability to unblock these apps for some period of time. I have tried this:             do {                     center.stopMonitoring()                     try center.startMonitoring(.unblock, during: schedule, events: [.encouraged: DeviceActivityEvent(                         applications: applications.applicationTokens,                         threshold: DateComponents(second: 30)                     )])                     print("Unblock apps")                 } catch {                     print("Error")                 } Maybe I have to use another way to do it? but this doesn't work for me.
Replies
1
Boosts
0
Views
1.3k
Activity
Jan ’22