Can I use php to dynamically generate xml for ios-itms-service installation?

Source: Internet
Author: User
I wrote a front-end page (pg.xls s. inipa) to distribute ios programs. The purpose is to use php to dynamically generate a plist string and directly return it to the browser. Then, install the corresponding ipa on the mobile phone. Test URL: pg.xlss.inipatest.html (the ipa file is written inside... I wrote a front-end page (https://pg.xlss.in/ipa/) to distribute ios programs. The purpose is to use php to dynamically generate a plist string and directly return it to the browser. Then, install the corresponding ipa on the mobile phone.

Test URL: https://pg.xlss.in/ipa/test.html (the ipa file writes an intranet address)

An object. plist file is used, and the installation is normal;
Itms-services ://? Action = download-manifest & url = https://pg.xlss.in/ipa/test.plist

The xml generated based on parameters using php is unsuccessful.
Itms-services ://? Action = download-manifest & url = https://pg.xlss.in/ipa/plist.php? Ver = 2.0.0 & env = predist

The content of xml is exactly the same as that of plist.

Reply content:

I wrote a front-end page (https://pg.xlss.in/ipa/) to distribute ios apps. The purpose is to use php to dynamically generate a plist string and directly return it to the browser. Then, install the corresponding ipa on the mobile phone.

Test URL: https://pg.xlss.in/ipa/test.html (the ipa file writes an intranet address)

An object. plist file is used, and the installation is normal;
Itms-services ://? Action = download-manifest & url = https://pg.xlss.in/ipa/test.plist

The xml generated based on parameters using php is unsuccessful.
Itms-services ://? Action = download-manifest & url = https://pg.xlss.in/ipa/plist.php? Ver = 2.0.0 & env = predist

The content of xml is exactly the same as that of plist.

Resolved. You do not need an object plist file. The reason for previous failures is:

Itms-services ://? Action = download-manifest & url = https://pg.xlss.in/ipa/plist.php? Ver = 2.0.0 & env = predist

Url after url is not urlencode

Solution:

The url after the last url needs to urlencode the parameter section. Example:

$scope.install = function(){    var url = 'https://pg.xlss.in/ipa/plist.php';    var params = '?ver=' + $scope.data.version + '&env=' + $scope.data.environment;    encodeParams = encodeURIComponent(params);    window.location.href = 'itms-services://?action=download-manifest&url=' + url + encodeParams;};

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.