How can user allow a content filter after previously choosing "Don't Allow"?

Our enterprise product uses a content filter, normally customers deploy MDM profiles to authorise and allow the content filter to work. Some customers however do not use these profiles, requiring them to enable the system extension in System Settings and allow the content filter via the popup below.

If the user selects "Don't Allow", intentionally or by mistake, there does not appear to be an mechanism for them to change their mind and allow it instead.

If the user fails to enable the system extension on the first prompt, there is an option to enable if via System Settings. There doesn't seem to be a similar option if they "Don't Allow" the content filter.

How can the user allow a previously denied content filter?

Answered by DTS Engineer in 834398022

That alert is triggered by your attempt to save a configuration. When the user clicks Don’t Allow, the save operation fails with an NEFilterManagerError.configurationPermissionDenied error. You can give the user another chance by attempting the save operation again. That is, call saveToPreferences() again.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

That alert is triggered by your attempt to save a configuration. When the user clicks Don’t Allow, the save operation fails with an NEFilterManagerError.configurationPermissionDenied error. You can give the user another chance by attempting the save operation again. That is, call saveToPreferences() again.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Ok, but I want to avoid spamming the user with alerts. We could show a warning that the filter is not active and provide the user a means (eg button) to trigger that alert, that will avoid spamming.

How can user allow a content filter after previously choosing "Don't Allow"?
 
 
Q