Some debugging results that feel like they matter:
If the extension doesn't have the Family Controls entitlement then any attempt to access values returned by ManageSettingsStore() fails with a sandbox error. This seems as it should be.
However, if you have the entitlement, this code:
logger.debug("num apps blocked before reset: \((store.shield.applications ?? Set()).count)")
will accurately return the number of blocked apps when run from the app. But if this same code is run from the extension it always prints that 0 apps are blocked.
So we are left with a weird world where ManagedSettingsStore returns something that allows for some kind of access, but the returned store doesn't reflect the same state available in the main app.
Topic:
Programming Languages
SubTopic:
Swift
Tags: