How to install multiple internal applications? (iPhone)

I am developing a website for deploying applications for the iPhone. Users can select several iOS applications from the list of applications from the website, and when they click the download button, all applications must be installed on the phone one by one. Check all applications at once - click "Download" - then all applications will be downloaded and installed automatically. How is this possible? Is there any way to modify this plist file where url dict is an array?

<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>http://web.me.com/macdev/apps/app1.ipa</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>com.macdev.inhouse.app1</string> <key>bundle-version</key> <string>1.0</string> <key>kind</key> <string>software</string> <key>title</key> <string>App Demo</string> </dict> </dict> </array> </dict> </plist> 
+6
source share
1 answer

According to the documentation, the items key is a β€œdownload array”, so for each application add a <dict> with the assets and metadata application in this array:

 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <!-- array of downloads. --> <key>items</key> <array> <dict> <!-- App #1 --> <key>assets</key> <array> ... </array> <key>metadata</key> <dict> ... </dict> </dict> <dict> <!-- App #2 --> <key>assets</key> <array> ... </array> <key>metadata</key> <dict> ... </dict> </dict> </array> </dict> </plist> 

When the user clicks on the link for this plist, they are offered something like "xyz.com wants to install 2 applications. Cancel | Install".

Tapping Install starts the download and installation of all applications.

+8
source

Source: https://habr.com/ru/post/888494/


All Articles