Hello,
I'm developing a gambling blocker app that uses NEFilterDataProvider. My app was approved on the App Store, but the core feature doesn't work for end users. I have the content-filter-provider entitlement.
Issue 1 — saveToPreferences() fails in distribution builds
In dev builds (Xcode direct install), NEFilterManager.saveToPreferences() works fine — iOS shows a permission dialog and the filter is registered. In distribution builds (TestFlight/App Store), it fails immediately:
NEFilterErrorDomain code 5 — Operation not permitted
Console log from nehelper:
"Creating a content filter configuration is only allowed through profile in production version"
Issue 2 — .mobileconfig profile requires MDM
Following the Console hint, I tried a .mobileconfig profile with com.apple.webcontent-filter payload (ContentFilterUUID, FilterType: Plugin, PluginBundleID). On an unsupervised consumer iPhone (iOS 18.5), installation fails:
Profile Installation Failed — MDM required
Question: What is the correct mechanism to activate a NEFilterDataProvider on a consumer (non-MDM) iPhone in a distribution build? Is there a specific entitlement or approval process I'm missing?
(DTS Case-ID: 20087732)
5
0
243