IOS: Is it possible to install configuration profiles on a device without going through a safari?

I am trying to install a file . mobileconfig through the app without viewing Safari or Mail apps.

At the moment, I can upload the file in my application, but still I need to transfer it to safari for processing. This means that the user will be reset back to safari after he installs the profile, while I want to return them to my application.

The docs mention that Safari is looking for the .mobileconfig extension, which apparently goes to the Settings app. Is there a way to cut out a mediator like prefs:... URL scheme?

+4
source share
2 answers

I searched for a while and tried everything that I can think of - until I got lucky. It looks like you need to go through Safari to do this.

To improve user experience, you can launch Safari from the page on which you post: 1) allows the user to set the configuration profile and 2) allows them to return to your application through a custom URL scheme (yourapp: // application / check_profile).

+3
source

I sent an answer with a code that does what Akhomenko said, but automatically (without user intervention): Setting the configuration profile on iPhone - programmatically

0
source

Source: https://habr.com/ru/post/1385118/


All Articles