Do you have any demo?
Post
Replies
Boosts
Views
Activity
Did anyone find any solution?
same error. xcode 13.2
trying to use UserDefault in Network extension.
[User Defaults] Couldn't read values in CFPrefsPlistSource<0x280084580> (Domain: group.appgroup, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
okay
This is FilterDataProvider class.
I tried https://www.vimeo.com & vimeo.com
This is the URL of demo. https://github.com/anismansuri63/MacFilter
class FilterDataProvider: NEFilterDataProvider {
override func startFilter(completionHandler: @escaping (Error?) -> Void) {
let exampleRule = NENetworkRule(
remoteNetwork: NWHostEndpoint(hostname: "https://www.vimeo.com/", port: "0"),
remotePrefix: 0,
localNetwork: nil,
localPrefix: 0,
protocol: .TCP,
direction: .any
)
let filterRule = NEFilterRule(networkRule: exampleRule, action: .drop)
let filterSettings = NEFilterSettings(rules: [filterRule], defaultAction: .drop)
apply(filterSettings) { error in
if let applyError = error {
os_log("Failed to apply filter settings: %@", applyError.localizedDescription)
}
completionHandler(error)
}
}
override func stopFilter(with reason: NEProviderStopReason, completionHandler: @escaping () -> Void) {
completionHandler()
}
override func handleNewFlow(_ flow: NEFilterFlow) -> NEFilterNewFlowVerdict {
return .drop()
}
}
In some Parental Control, apps ask to download the profile.
After downloading and installing the profile filter works. MDM profile is downloaded.
I've Entity Type - Company / Organization account.
My query is I want to achieve something like this, What are the requirements?
Is Company / Organization account enough to create MDM profile and server?
How Do I communicate between My device to MDM Server?
How Do I enroll My device to MDM Server?
Did you find any solution?
https://apps.apple.com/us/app/app-lock/id6448239603 &
https://apps.apple.com/us/app/applocker-passcode-lock-apps/id1132845904
These apps are somehow doing, opening the parent app Shield Action.
Is there any way to do so?
also when I lock app and click on app, Shield Config UI is not coming, default UI is coming.