About iOS 7.1 post-itms-services online app

Source: Internet
Author: User

In the course of iOS development, there are always problems like this or that. These days to do an app, you need to update the client directly, the normal system is updated in AppStore, this app is not AppStore, so you need to use the

Itms-services://?action=download-manifest&url= such a piece of code. To summarize the use of this method, the code is as follows:

nsurl* Nsurl = [nsurlurlwithstring:[nsstringstringwithformat:@] itms-services://?action=download-manifest&url= %@ ", Self.client_url]];

To use the real machine.

[[Uiapplicationsharedapplication]openurl:nsurl];

The Self.client_url is a link to a plist file that is accessible from the network, such as: https://xxx.xxx.xxx/app.plist

This plist file example is explained in the following experience. Here, let's talk about the method used.

When you use this method, you encounter the problem that the APP specified in plist can be installed directly in the version below IOS7.1.

When the iOS version is greater than 7.1, the XXX.XXX.XXX certificate is invalid or cannot be connected to xxx.xxx.xxx.

The reason is that after IOS7.1 the method requires that the link must be a link to support HTTPS, if you can configure SSL is not much of a problem. But a program ape like this Dick Silk. A little puzzled. The configuration is too troublesome.

A scenario is provided here. Use seven Cow cloud storage. Apply for an account on seven kn. Open up a space, and then need real-name authentication, only real-name authentication to upload a variety of file formats. Seven cattle is supported by SSL, just put the app.plist file on the seven cattle on it, where the app's Ipamubiao address as long as the access to remain accessible on the line.

Another point, seven cows after you upload the file, the default is the outside chain, is not with HTTPS, you need to

Space Settings-"Apply for domain binding, add a suffix qbox.me domain name, this is to support HTTPS, and then change the file's link domain name to the new state domain name can be."

If the original link is http://xx.qiniudn.com/testapp.plist directly into the https://dn-xxx.qbox.me/testapp.plist and then put

Http://xx.qiniudn.com/testapp.plist directly into Https://dn-xxx.qbox.me/testapp.plist

The code is as follows:

[Email protected] "https://dn-xxx.qbox.me/testapp.plist";

nsurl* Nsurl = [nsurlurlwithstring:[nsstringstringwithformat:@] itms-services://?action=download-manifest&url= %@ ", Self.client_url]];

To use the real machine.

[[Uiapplicationsharedapplication]openurl:nsurl];

This allows us to install the app specified in Testapp.plist, if the device is already jailbroken, or if the certificate of the packaged app is an enterprise certificate.

About iOS 7.1 itms-services online app

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.