Posts

Post not yet marked as solved
5 Replies
I've tried both ways to configure my provider (via NEFilterManager or setting up a configuration profile on a supervised device), but it was not successful. I've spent much time creating profiles (related to Reference), and that's works well with BuiltIn profiles but not with the Plugin ones.When I set up development settings, I tried to do that like so:let config = NEFilterProviderConfiguration() config.username = "User" config.organization = "Atomic" config.filterBrowsers = true config.filterSockets = false config.serverAddress = "testing.t-atomic.com" NEFilterManager.shared().providerConfiguration = config NEFilterManager.shared().isEnabled = true NEFilterManager.shared().saveToPreferences { error in if let err = error { print("Failed to save the filter configuration: \(err)") return } }Now I have a goal just to make sure that extensions are started and I can capture all browser traffic.Now I'm gettingError Domain=NEFilterErrorDomain Code=3 "(null)"when trying to save manager instance.I successfully ran it once (I was asked to allow the use of the filter) before the error occurred, but my extensions did not start then.
Post not yet marked as solved
5 Replies
Thanks for your answer!"First, add a log statement to your provider’s -init method" I overrode extension class with NSLog and tried to catch it with every possible scheme order combination on both physical device and simulator, but found nothing in the console or system log. It also does not appear in the "Attach to process" list.I've raised a new project from scratch with an empty host application and NEFilterDataProvider extension, following the instructions in the documentation carefully, but to no avail.So I'm probably missing some very important point, but it's obvious to everyone but me, such asDo I need some functionality in the host app, or can an extension work on any of them?