Posts

Post marked as solved
1 Replies
165 Views
Hi everyone, I am trying to change the settings when the shield button is clicked. When I called let store = ManagedSettingsStore() in the ShieldAction extension, store.shield.applications is nil. How can I access the instance created in the host app? Besides, has anyone ever tried to change the shield UI after clicking a button on the shield screen? I've searched around but no luck. is there any way I can notify the host app for further actions? Any help would be appreciated! Thank you very much. Sorry I don't know why I can't add the wwdc21-10123 tag.
Posted
by g0mi.
Last updated
.
Post marked as solved
1 Replies
236 Views
Hi all, I am facing a problem following the code in the "Meet the Screen Time API" video. I've tried scheduling the monitoring time from 00:00 to 25:59 or some other time but functions in DeviceActivityMonitor are never being called. I tried to print log from those functions, nothing shown. Is there any settings I've missed? In addition, I already changed the NSExtensionPrincipalClass value to my class name. Any help would be appreciated!
Posted
by g0mi.
Last updated
.
Post not yet marked as solved
0 Replies
154 Views
Hi everyone, I am going to develop an app that manage a user's own app usage and activities. I know that there's a ScreenTime API but looks like it's for family control only. Is there any way that I can list app usages of my own device in my app? Any answer will be appreciated. Thank you very much.
Posted
by g0mi.
Last updated
.