Screen Time API How to send restrict information from parent to child

I want to know the structure how to send restrict information from parent to child.

When parent sets restriction on parent's device, that information is reflected on the child's device and the child is restricted from using the app and device.

I want to know how the restrictions set on the parent's device are transmitted to the child's device. Also, I want to know how to do it. I could even call requestAuthorization and succeed.

Does anyone know this?

Accepted Answer

Hi,

the Screen Time API does not provide functionality to move restrictions from the parent’s device to the child’s device. Your app will need to define how instructions are moved (commonly web server).

Thank you for your reply.

Is it possible to transform opaque applications token from parent to child through web server? I think I have to transform it in order to set restrictions of child's app by using parent's device.

Thank you for your great help.

I'm trying to share applicationTokens with DeviceActivityMonitor Extension, but it doesn't work.

I tried some way. For example, I tried to save applicationTokens by using UserDefaults. However, I couldn't do it because the data type of applicationTokens isn't appropriate for UserDefaults. I considered other options like key-value or keychain. But, they seem that they can't save the data type of applicationTokens.

Do you know how applicationTokens can be saved and can be transmitted to DeviceActivityMonitor Extension?

Thank you. I could do it.

Screen Time API How to send restrict information from parent to child
 
 
Q