Installing a configuration profile on iPhone – programmatically
1) Install a local server like RoutingHTTPServer 2) Configure the custom header : [httpServer setDefaultHeader:@”Content-Type” value:@”application/x-apple-aspen-config”]; 3) Configure the local root path for the mobileconfig file (Documents): [httpServer setDocumentRoot:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]]; 4) In order to allow time for the web server to send the file, add this : Appdelegate.h UIBackgroundTaskIdentifier bgTask; Appdelegate.m – (void)applicationDidEnterBackground:(UIApplication … Read more