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!
I finally figured it out. The apps being monitored were not changing with my model selection. I had to call center.startMonitoring() after performing the selection. Also, I couldn't print logs from the extension. However, I could perform other actions like showing a notification to verify it worked.