I'm using the "com.apple.webcontent-filter" payload, also I'm specify to use Plug-in as FilterType and app’s bundle identifier is set as the value of the PluginBundleID field in the profile payload. Further my app using Network Extension, FilterDataProvider and FilterControlProvider.
What I want to achive is to enable the web content filter without open my app.
Yes.Should work as I dont need to open my app on the managed device for
enabling the web content filter?
When you think about this it’s a clear requirement of the current design. By definition the user of a supervised device can’t make device-wide changes, and thus there’s no way that they can configure the filter from your app. That means that the only way to configure the filter is via a configuration profile.
Correlating your profile to the documentation I see a number of problems:
You don’t need FilterDataProviderBundleIdentifier and FilterDataProviderDesignatedRequirement on iOS.
You can omit FilterPackets because packet filters aren’t a thing on iOS.
You’ve redacted the PluginBundleID value, so it’s not clear what bundle ID you’re using. The documentation isn’t particularly forthcoming on this either so, just to be clear, this must be the bundle ID of the container app.
Code Block <dict> <key>FilterBrowsers</key> <true/> <key>FilterSockets</key> <true/> <key>FilterType</key> <string>Plugin</string> <key>PayloadDescription</key> <string>Configures content filtering settings</string> <key>PayloadDisplayName</key> <string>My Filter Config</string> <key>PayloadIdentifier</key> <string>com.apple.webcontent-filter.2EF1184F-FC41-4477-BA81-D46AB318D8BB</string> <key>PayloadType</key> <string>com.apple.webcontent-filter</string> <key>PayloadUUID</key> <string>2EF1184F-FC41-4477-BA81-D46AB318D8BB</string> <key>PayloadVersion</key> <integer>1</integer> <key>PluginBundleID</key> <string>com.example.apple-samplecode.Test667016</string> <key>UserDefinedName</key> <string>Test667016 Filter Config</string> </dict>
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"