N
N
Nikita Roisman2020-01-31 17:51:43
iOS
Nikita Roisman, 2020-01-31 17:51:43

How to start downloading an app on iOS?

Hello! I have a website, I need the user to click on a button, and the download starts on the iPhone desktop.
I have added the following code:

<?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://kr.com/ios/app/minecraft.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.mojang.minecraftpe</string>
<key>bundle-version</key>
<string>1.9.0.15</string>
<key>kind</key>
<string>software</string>
<key>subtitle</key>
<string>yjtn</string>
<key>title</key>
<string>
Minecraft</string>
</dict>
</dict>
</array>
</dict>
</plist>

Nothing works, the installation window does not appear, it gives an error.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Roisman, 2020-01-31
@Kropers

Found a solution. Create an html
file

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 
  <title>Install Geoloqi</title>
  <style type="text/css">
    body {
      background: url(bkg.png) repeat #c5ccd4;
      font-family: Helvetica, arial, sans-serif;
    }
    .congrats {
      font-size: 16pt;
      padding: 6px;
      text-align: center;
    }
    .step {
      background: white;
      border: 1px #ccc solid;
      border-radius: 14px;
      padding: 4px 10px;
      margin: 10px 0;
    }
    .instructions {
      font-size: 10pt;
    }
    .arrow {
      font-size: 15pt;
    }
    table {
      width: 100%;
    }
  </style>
</head>
<body>

<div class="congrats">Congrats! You've been invited to the beta of Geoloqi.</div>

<div class="step">
  <table><tr>
    <td class="instructions">Install the<br />Geoloqi app</td>
    <td width="24" class="arrow">&rarr;</td>
    <td width="57" class="imagelink">
      <a href="itms-services://?action=download-manifest&url=https://example.com/install.plist">
        <img src="geoloqi-icon.png" height="57" width="57" />
      </a>
    </td>
  </tr></table>
</div>

</body>
</html>

then create a file install.plist
Paste
<?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>прямая ссылка на .ipa файл</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.mojang.minecraftpe <== (ОН ДОЛЖЕН БЫТЬ ДРУГИМ)</string>
<key>bundle-version</key>
<string>Версия приложения</string>
<key>kind</key>
<string>software</string>
<key>subtitle</key>
<string>App</string>
<key>title</key>
<string>Название приложения</string>
</dict>
</dict>
</array>
</dict>
</plist>

L
Lorem Ipsum, 2020-01-31
@GeorgeGeorge

What download? Applications are downloaded from the App Store.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question