Make iOS Enterprise App Web scan qr code download install

Source: Internet
Author: User

Sometimes we need to scan QR code download on the homepage of XX website, then how to do it in iOS development.

Let me give you some answers, this is also in the recent work of the part, on the internet to learn some.

Here is a breakdown of the steps for everyone:

1.Plist and IPA files

App Packaging I will not elaborate, this online tutorial a lot of, remember the real machine under the pack. (xcode->product->archive->export) export the IPA file.

PLIST file to create one yourself (the name you like is good). The format is as follows: (PLIST utf-8 format)

  Configure the Plist file to create a plist file based on the template below and configure some basic items (that is, where the "" is specified and commented)

<?XML version= "1.0" encoding= "UTF-8"?><!DOCTYPE plist Public "-//apple//dtd plist 1.0//en" "Http://www.apple.com/DTDs/PropertyList-1.0.dtd "><plistversion= "1.0"><Dict>    <Key>Items</Key>    <Array>        <Dict>            <Key>Assets</Key>            <Array>                <Dict>                    <Key>Kind</Key>                    <string>Software-package</string>                    <Key>Url</Key>                    <string>"The URL where IPA is located, use the HTTPS protocol"</string>//ipa The path on the server                </Dict>            </Array>            <Key>Metadata</Key>            <Dict>                <Key>Bundle-identifier</Key>                <string>"Buildeid of the App"</string>//Your Buildeid in your Xcode info.plist                <Key>Bundle-version</Key>                <string>"Version number"</string>//version number such as 1.0.0                <Key>Kind</Key>                <string>Software</string>                <Key>Title</Key>                <string>"App name"</string>//This is your app's name for example: Dog eggs            </Dict>        </Dict>    </Array></Dict></plist>

2. Add the following code to your page

<a href= "itms-services://?action=download-manifest&amp;url=https://www.domain.com/app.plist" >iphone installation </a>

<a href= "itms-services://?action=download-manifest&url=" plist file path "" >HELLO</a>

Note: The address of the URL connected to plist must be https and trusted.

After this step, you can open this page under iphone, click on the connection, you will be prompted to install the app.


3, configuring HTTPS

Because of a Web page download, Apple needs to use the HTTPS protocol for security purposes, so at this point the server developer will configure the HTTPS protocol, the configuration process

I said, Baidu a lot, but when the configuration must let them understand, not casually get a self-signed digital certificate can be, Safari is impossible to verify through. So we have to go to a qualified CA agency to apply for a certificate, here is recommended http://www.startssl.com/This can be free to apply for a one-year certificate, of course, there are charges apply.


The above 3 points is to make the Enterprise Edition download to do several main work. It simply means referencing a plist profile in an HTML page. Because this configuration file specifies the download path for the IPA. This path needs to be accessed based on the HTTPS protocol.

The above references are from:

Http://jingyan.baidu.com/article/a3aad71aa5fbfbb1fb0096b1.html

http://blog.csdn.net/wangzhilife/article/details/46888799

Make iOS Enterprise App Web scan qr code download install

Related Article

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.