【问题标题】:IOS Enterprise updates over-the-airIOS Enterprise 无线更新
【发布时间】:2012-07-31 20:03:25
【问题描述】:

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

itms-services://?action=download-manifest&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];

【问题讨论】:

  • 您使用任何 MDM 产品吗? (空中监视等...)?

标签: ios afnetworking


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2013-04-02
    • 1970-01-01
    • 2012-05-06
    • 2022-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多