I want to remove shield restrictions for apps. Following the WWDC21 video, I declare ManagedSettingsStore and trying to reset restrictions:
class MyDeviceActivityMonitor: DeviceActivityMonitor {
let store = ManagedSettingsStore()
public override func intervalDidEnd(for activity: DeviceActivityName) {
super.intervalDidEnd(for: activity)
store.shield.applications = nil
}
}
Will this string has impact on the app store.shield.applications = nil
? Because now, while testing it seems that I'm dealing with two different stores.
Or again it is doesn’t synced by default and let store = ManagedSettingsStore()
will create store
which will be different than store
on which the app is relays on?
Thank you!