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;};