IOS企业版的空中更新



希望这是一个简单的问题,但是,我找不到任何具体的答案。我们已经完成了更新企业应用OTA的所有步骤。我的问题是,我可以使用AFNetworking打电话吗?或者调用链接的最佳方式是什么。(目前afnetworking给我带来了错误,但这可能是我们这边的问题。)我只使用afnetworking,所以除非迫不得已,否则我宁愿不更改。提前感谢

itms服务://?action=下载清单&url=http://ourServer/Setup/manifest.plist

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:kiPADSetupLink]];
[request setTimeoutInterval:300];
NSLog(@"begin downloading app update");
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject)
 {
     // handle success
 } failure:^(AFHTTPRequestOperation *operation, NSError *error)
 {
     // handle error

 } ];
[operation start];

不,您需要系统打开该URL,您自己无法访问。使用UIApplicationopenURL:方法。

最新更新