Triggering On Demand rules for matchDomains for non-browser apps

It looks like matchDomains works as expected for browser apps. Can you confirm if it is supported for non-browser apps? For example, if a non-browser app uses Core framework calls such as CFHostStartInfoResolution to resolve a domain to an IP and then directly connects to that IP, would that be expected to trigger the on demand rule?

Answered by DTS Engineer in 761175022

Can you confirm if it is supported for non-browser apps?

It should work for any app that uses a connect-by-name API.

Apps that use the ‘resolve then connect’ approach will fail in a variety of circumstances, including this one. For more background on this, see the Connect by name section in TN3151.

Share and Enjoy

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

Accepted Answer

Can you confirm if it is supported for non-browser apps?

It should work for any app that uses a connect-by-name API.

Apps that use the ‘resolve then connect’ approach will fail in a variety of circumstances, including this one. For more background on this, see the Connect by name section in TN3151.

Share and Enjoy

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

Triggering On Demand rules for matchDomains for non-browser apps
 
 
Q