Post

Replies

Boosts

Views

Activity

Device Activity Extension not being called
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!
2
0
2.3k
May ’22
Cannot access ManagedSettingsStore in extensions
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.
1
0
1.3k
Jun ’22
Is it possible to manage a user's own usage and activities in a third-part app?
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.
Replies
0
Boosts
1
Views
631
Activity
Apr ’22
Device Activity Extension not being called
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!
Replies
2
Boosts
0
Views
2.3k
Activity
May ’22
Cannot access ManagedSettingsStore in extensions
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.
Replies
1
Boosts
0
Views
1.3k
Activity
Jun ’22