网络技术

企业网站如何发布ios应用下载

导读:

无线设备(iPhone和iPad)的下载是要去Apple stone的。但是如果要在企业官网发布应用下载,Android的其实很容易,就是apk(Android Package)文件的url地址,访问即可下载,和Windows平台的exe、zip这种下载是一样的。但是ios不行,ios无线设备的安装包格式为ipa(iPhone Application),这个如果上传到服务器中,直接访问url是不起作用的,这个过程是很难说清楚的,但是原因很简单就是为了安全,苹果在这一点是做的非常好的。但是如果应用还没上架,要公测呢?本文带你了解如何在企业网站发布ios应用下载。

 

index.html

下载页面其实非常容易,如果点击唤醒Apple stone是很简单的,但是要直接下载安装包,也就是信任模式安装,在导读中也已提到是不可以直接访问ipa文件的url下载的。所以要创建一个网页,内容是。

<script>
window.location.href='itms-services://?action=download-manifest&url=https://域名/download/sjar.plist';
</script>

网页内容如此即可,存为index.html,这个就是下载的落地页,或者叫引导页,懂我意思就行。但是建议把index.html放到一个单独的目录里,比如建立download目录,就是https://域名/download,随后把ipa、apk、plist都放到download目录。

 

【设定我的ipa文件名为sjar.ipa,bundleID是com.shijianairen.www,bundle version是1.0.0,软件名为测试,以此来参考配置下面的文件吧】

ipa文件

ipa文件就是ios移动设备的安装包,这个没什么好说,但是需要注意的是ipa文件的文件名要和接下来将到的plist的文件名一致。比如ipa文件全名为:sjar.ipa,则plist的文件全名也要是sjar.plist,文件名一致,文件全名包括了(文件名)+(.)+(文件扩展名[文件格式])。

 

plist文件

plist(Property List)的中文意思就是属性列表,在GNUstep和NeXTSTEP里面是一种用来存储序列化后的对象的文件,属性列表文件的文件扩展名为.plist,因此通常被称为plist文件。 Plist文件通常用于储存用户设置,也可以用于存储捆绑的信息,该功能在旧式的Mac OS中是由资源分支提供的。

言归正传,讲讲这个plist文件。首先把代码贴出来吧,plist文件名为sjar.plist。请严格按照以下代码标记处进行修改。切勿修改标签及声明等任意部分。

<?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">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>https://域名/download/sjar.ipa【第一处】</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>https://域名/download/fullimg.png【第二处】</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>https://域名/download/disimg.png【第三处】</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.shijianairen.www【第四处】</string>
<key>bundle-version</key>
<string>1.0.0【第五处】</string>
<key>kind</key>
<string>software</string>
<key>subtitle</key>
<string>install app</string>
<key>title</key>
<string>测试【第六处】</string>
</dict>
</dict>
</array>
</dict>
</plist>

plist文件修改讲解:

  1. 第一处software-package的url,就是ipa的url绝对路径。
  2. 第二处full-size-image的url,就是应用程序的图标,512*512像素,注意是png格式,绝对路径。
  3. 第三处display-image的url,就是下载和安装过程中的图标,57*57像素,也是png格式,绝对路径。
  4. 第四处bundle-identifier,就是应用程序的包标识符,和Xcode中指定的完全一样。
  5. 第五处bundle-version,就是应用程序的包版本,也是在Xcode中指定的。
  6. 第六处install app的title,就是应用程序名,软件名

切记只修改这六处即可,别的不要动。并注意:plist文件必须是https协议。关于https的部署可以参考文末的文章。

 

完成之后,确定一下这个结构:有两个应用logo,一个是512*512px,一个是57*57px,一个下载的落地页,一个ipa的安装包,一个sjar.plist的属性列表(理解为配置文件)。当然不一定这些都在一个文件里面,但是涉及到的url一定要是绝对地址

此时,使用ios移动设备访问https://域名/download/index.html,即可下载(前提是开启了信任安装)。

再配上一些应用发布的模板,或者找前端写一个。就算彻底完成了

https部署参考:

  1. 我当前使用的Nginx下站点SSL证书配置分享
  2. 在 IIS6/7/8 下部署SSL证书实现HTTPS的方法
  3. 网站SSL证书到期后如何进行续购更换?
  4. 老薛虚拟主机站点傻瓜式安装免费SSL证书
  5. 如何将.crt、.cer、.pfx、.p7b、.der的ssl证书转换成.pem格式?
  6. 或访问boke112导航搜索https、ssl等关键词,依据不同的服务器操作系统和环境配置ssl证书。

44 thoughts on “企业网站如何发布ios应用下载

  1. First off I want to say great blog! I had a quick question which I’d like to ask
    if you don’t mind. I was curious to know how you center yourself and clear your head prior to writing.
    I have had trouble clearing my mind in getting my ideas
    out there. I do enjoy writing but it just seems like the first 10 to 15 minutes are
    wasted just trying to figure out how to begin. Any suggestions or tips?
    Cheers!

  2. Fantastic goods from you, man. I’ve understand your stuff previous to
    and you are simply extremely excellent. I really like what you’ve got here, certainly
    like what you are stating and the way in which through which you say
    it. You’re making it entertaining and you continue to take care of to keep it wise.

    I can’t wait to read much more from you. This is really a
    terrific website.

  3. Woah! I’m really digging the template/theme of this blog.

    It’s simple, yet effective. A lot of times it’s difficult to get that “perfect balance” between user friendliness and
    visual appeal. I must say you’ve done a amazing job with this.

    Additionally, the blog loads very fast for me
    on Opera. Superb Blog!

  4. Just want to say your article is as astonishing. The clearness in your post is just great and i can assume you
    are an expert on this subject. Well with your permission allow me to grab your
    feed to keep updated with forthcoming post. Thanks a million and please keep up the enjoyable work.
    natalielise pof

  5. Superb site you have here but I was wondering if you knew of any message boards that cover the same topics discussed in this article?
    I’d really like to be a part of online community where
    I can get responses from other knowledgeable people that share the same interest.
    If you have any suggestions, please let me know. Thanks a lot!

  6. Hey there! I understand this is sort of off-topic however I
    had to ask. Does managing a well-established website
    like yours take a lot of work? I am completely new to running a blog
    but I do write in my journal on a daily basis. I’d like to start a blog so I can easily share
    my experience and views online. Please let me know if you have any ideas or tips for new aspiring blog owners.

    Thankyou!

  7. Hey there would you mind stating which blog platform you’re working with?

    I’m going to start my own blog in the near future but I’m having
    a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most
    blogs and I’m looking for something completely unique.
    P.S Apologies for being off-topic but I had to ask!

  8. Wonderful beat ! I wish to apprentice while you amend your web site, how can i subscribe
    for a blog site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

  9. You can certainly see your expertise in the article you write.

    The world hopes for even more passionate writers
    such as you who aren’t afraid to mention how they
    believe. Always go after your heart.

  10. Hey there! This is kind of off topic but I need some help from an established blog.
    Is it very hard to set up your own blog? I’m not very techincal but I
    can figure things out pretty fast. I’m thinking about making my own but
    I’m not sure where to start. Do you have any points or suggestions?
    Thanks

  11. I’m amazed, I have to admit. Seldom do I come across a blog that’s equally educative and amusing, and without a doubt, you have hit the nail on the head.

    The problem is something too few people are speaking intelligently about.
    I’m very happy I came across this in my hunt
    for something regarding this.

  12. I’ve been exploring for a bit for any high quality articles or weblog posts on this kind of area .
    Exploring in Yahoo I ultimately stumbled upon this
    site. Studying this information So i am happy to
    exhibit that I’ve a very excellent uncanny feeling I found
    out just what I needed. I so much undoubtedly will make certain to do not omit this web site and provides
    it a look regularly.

  13. Nice post. I learn something totally new and challenging on websites I stumbleupon every day.

    It’s always helpful to read articles from other writers and use something from
    their websites.

  14. Great post. I was checking constantly this blog and I’m impressed!
    Very useful info specially the last part 🙂 I care for such
    information much. I was seeking this certain info for a very long time.
    Thank you and best of luck.

  15. I think what you posted made a great deal of sense.
    However, think about this, what if you added a little content?
    I am not suggesting your content is not solid, but what if you added a headline that grabbed a person’s attention? I mean 企业网站如何发布ios应用下载
    – 时间爱人-卢航网-卢航 is a little plain. You ought
    to glance at Yahoo’s home page and watch how they create post titles to get viewers to open the links.
    You might try adding a video or a picture or two to get readers excited
    about what you’ve written. In my opinion, it
    might make your posts a little livelier.

  16. Hi there, I found your website by the use of Google even as searching for
    a related subject, your website came up, it seems good.
    I have bookmarked it in my google bookmarks.
    Hi there, just turned into aware of your blog via Google, and found that it is truly informative.
    I am gonna be careful for brussels. I’ll be grateful for those who continue this in future.
    Numerous other folks can be benefited from your writing. Cheers!

    1. 如果我认为你说的是错的,我就不让你说了,那我和你有什么区别(我指的是错的这一方面)。我岂不是大错特错。言论的对和错是价值判断,而且要根据事情本身、事情真实程度,言论自由程度,甚至时代背景来说乃至于调查评论人。如果我去一条一条的分析哪一句话是对的哪一句话是错的,我岂不是要累死。所以随便大家说吧,我都能看到,有时间就一一作出回应。连敏感词都没有,骂人的话,挂外链,什么都可以说,我绝不删,况且我今天是对的,明天就不一定是对的。日新月异,大家都在成长,如果没有限制,我更容易接受批评和自我批评。用伏尔泰的话讲就叫“我否定你说的每一个字,但是我誓死保护你说话的权利”。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

答案 : *
22 − 9 =


返回顶部