set ShieldConfigurationDataSource for webDomains

There are two ways to initialize a WebDomain when adding it to a ManagedSettingStore to be shielded. The first is by providing the relevant URL. The second is by providing a token representing a WebDomain that the user picked from the FamilyActivityPicker

When using the second way, I'm able to configure the appropriate shield with aShieldConfigurationDelegate and control its behavior with a ShieldActionDelegate

When using the first way, I am not. The shield is rendered, but I have no control over its appearance or behavior. My ShieldConfigurationDelegate and ShieldActionDelegate classes are not being hit.

How can I set the ShieldConfigurationDataSource of WebDomains constructed via explicit URL?

Do you mind sharing how you are blocking the web domains in both scenarios? It shouldn't be possible to use a set of WebDomain objects via store.shield.webDomains as this takes a set of WebDomainToken objects. The ShieldConfiguration and ShieldAction extensions only apply to the shield settings in the ManagedSettingsStore, so if you are using store.webContent.blockedByFilter for the first scenario, the blocked URL page is unfortunately not customizable at this time.

If you'd like to see this added in a future iteration of the API, please file report using Feedback Assistant.

Correct I'm using .webContent.blockedByFilter for the latter scenario I described (explicitly providing a URL).

I'm using .shield.webDomains for the former. Thanks for the clarification. I feel it's confusing that as developers we have the ability to shield arbitrary domains but not display a relevant message on that shield or modify the behavior of it. It can be unclear to users which app is even generating the shield. I'll file a report. Two follow-up questions:

  1. Can you confirm that the only way to get a WebDomainToken is from a FamilyActivitySelection generated by the user? The reason this is relevant is for non-safari iOS users - the web domains they use frequently in their non-safari browser do not appear in the FamilyActivityPicker.

  2. Is there documentation on how the FamilyActivityPicker selects which WebDomains are present? How far back in user history is used, etc.

Is there anyway to forcibly remove a website from the FamilyActivityPicker? Would deleting Safari browsing history do it, for example?

set ShieldConfigurationDataSource for webDomains
 
 
Q