You are not checking your email.
Nah, I just got a lot of email, so it can take a while to respond. Anyway, I prefer to discuss these things in the forums; that way everyone can benefit from my work.
The file you want to download is an MDM profile!
Ah, tricky. There are two parts to this:
I don’t work for App Review, so I can’t give definitive answers on that topic. However, my understanding is that configuration profiles are intended to be used by site admins, not as an API for developers. If you ship an app that uses them, you should review the App Review Guidelines carefully.
On the technical side, you are indeed in a bind:
-
SFSafariViewController
doesn’t have a mechanism to override HTTPS server trust evaluation. This makes sense, because it’s meant to act just like Safari.
-
The infrastructure used to install configuration profiles is internal to Safari. It’s not available as an API, and nor is it accessible via WKWebView
.
The only technical solution to the problem you’re trying to solve is to upload the configuration profile to a server with trusted a HTTPS certificate, and then point Safari at that.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"