Post

Replies

Boosts

Views

Activity

Reply to NEFilterDataProvider not invoked for some network activity.
Thank you for your response and all the effort you put into the explanations. As far as I can see, the applySettings: method as well as the NEFilterSettings class are marked API_UNAVAILABLE(ios, tvOS). So I can't use them, since we're operating on iOS devices only. If it helps, this is the code we currently use to enable the filter: let filterManager = NEFilterManager.shared() try await filterManager.loadFromPreferences() if filterManager.providerConfiguration == nil { let config = NEFilterProviderConfiguration() config.filterBrowsers = true config.filterSockets = true filterManager.providerConfiguration = config } filterManager.isEnabled = true try await filterManager.saveToPreferences()
Oct ’22