Upload and download ITMS service protocol of ipa file in APP publishing system

Project requirements: internal test and distribution of APP, upload and download of ipa file of publishing system, use ITMS service protocol and jump and download in safari web page

  1. It is divided into download page (dl.html), text.plist file and test.ipa file address
  2. . ipa file upload to server download address
  3. Generate plist file xml format to upload to the file system and return to the download address
  4. Download page provides jump link

dl.html is as follows:

<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<script type="text/javascript">

function $G(){

var Url=top.window.location.href;

var u,g,StrBack='';





if (u.length==1) g='';

else g=u[1];



   var MaxI=gg.length;

   str = arguments[0]+"=";


      if(gg[i].indexOf(str)==0) {






return StrBack;

var id =$G('id');
alert("Illegal link, missing parameter!");
var id =$G('id');
//api generates xml dynamically according to id parameters
var url = 'https://xxx.xxx./api/plist';
//This is the key point. All parameters after index.php must be encoded to be valid
var en = encodeURIComponent("?id="+id);
url += en;
window.location.href = "itms-services://?action=download-manifest&url=" + url;

plist format is as follows:

<?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">

Note that plist address and ipa file address are https addresses https://xxx.com/test.ipa

Published address https://xxx.com/dl.html?id=100 Generate plist file dynamically according to id and download ipa for installation

Reference tutorial: Install ipa online through itms:services: / /? Across app store https://www.cnblogs.com/sakura-panda/p/3628694.html

Tags: Programming xml Javascript PHP encoding

Posted on Fri, 13 Mar 2020 10:57:06 -0400 by cliffdodger