Hello,
I am trying to get my iOS9 Content Filter up and running. I believe I have the app coded correctly, signed with the correct Network Extensions (which I have), and have the app running in debug mode on a supervised ipad through xcode. In my main code in the enclosing app I initialize the Content Filter's configuration and had accepted the popup asking the user to allow content filtering. However, the content filter never intializes, I can always see in my ipad's logs the following lines whenever the content filter tries to intiailize:
Jan 29 12:47:54 IOS9-Filtering-Test nesessionmanager[182] <Notice>: NESMFilterSession[com.xyz.iOS-MDM-Agent:C68A454B-898E-4677-B65B-A8A1FC0663C1]: Received a start command from nehelper[193]
Jan 29 12:47:54 IOS9-Filtering-Test nesessionmanager[182] <Notice>: NESMFilterSession[com.xyz.iOS-MDM-Agent:C68A454B-898E-4677-B65B-A8A1FC0663C1]: status changed to connecting
Jan 29 12:47:54 IOS9-Filtering-Test nesessionmanager[182] <Error>: Plugin com.xyz.iOS-MDM-Agent does not have a bundle URL
Jan 29 12:47:54 IOS9-Filtering-Test nesessionmanager[182] <Error>: Failed to find plugin com.xyz.iOS-MDM-Agent
Jan 29 12:47:54 IOS9-Filtering-Test nesessionmanager[182] <Notice>: NESMFilterSession[com.xyz.iOS-MDM-Agent:C68A454B-898E-4677-B65B-A8A1FC0663C1]: status changed to disconnected, last stop reason Plugin failed
I initialize the content filter directly through the code as shown below. The log output correctly identifies my app id but says my content filtering plugin does not have a bundle URL.
let config = NEFilterProviderConfiguration()
config.filterBrowsers = true
config.filterSockets = true
NEFilterManager.sharedManager().providerConfiguration = config
NEFilterManager.sharedManager().enabled = true
NEFilterManager.sharedManager().saveToPreferencesWithCompletionHandler { error in
if let saveError = error {
NSLog("Failed to save the filter configuration: \(saveError)")
return
}
}
Thank you for any input!
-David