user668660
user668660

Reputation:

iOS: Possible to install configuration profiles on device without going through safari?

I'm trying to install a .mobileconfig file through an application without going through the Safari or Mail apps.

At the moment, I can download the file in my application, but still have to pass it to safari to handle. This means that the user gets dumped back in safari after they've installed the profile, whereas I want to return them to my application.

The docs mention that Safari looks for the .mobileconfig extension, which it presumably passes on to the Settings app. Is there a way to cut out the middleman, like a prefs:... URL scheme?

Upvotes: 4

Views: 8120

Answers (2)

xaphod
xaphod

Reputation: 6804

I posted an answer with code which does what akhomenko mentioned, but automatically (no user interaction required), here: Installing a configuration profile on iPhone - programmatically

Upvotes: 0

akhomenko
akhomenko

Reputation: 315

I've searched for a while and tried everything I can think of - no luck so far. It looks like you have to go through Safari to do it.

To improve user experience, you can launch Safari with a page that you host that 1) allows the user to install the configuration profile and 2) allows them to come back to your app via a custom url scheme (yourapp://app/check_profile).

Upvotes: 3

Related Questions