Skip to content

Instantly share code, notes, and snippets.

@ryanhanwu
Created October 25, 2012 09:01
Show Gist options
  • Select an option

  • Save ryanhanwu/3951519 to your computer and use it in GitHub Desktop.

Select an option

Save ryanhanwu/3951519 to your computer and use it in GitHub Desktop.
Auto trigger ios OTA download
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<title>AutoUpdate</title>
<link rel="shortcut icon" href="/imgs/favicon.png" type="image/x-icon">
<link rel="apple-touch-icon" href="http://dl.dropbox.com/u/15540367/Forever/ota-test.png">
</head>
<body>
<h2>Thank You! Latest Version : V3.2</h2>
<script>
var url = 'itms-services:\/\/?action=download-manifest&url=http:\/\/dl.dropbox.com/u/15540367/Forever/ota-test.plist';
setTimeout(function(){
location.href = url;
}, 500);
</script>
</div>
</body>
</html>
<?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>http://SomeWhereYourApp.com/app.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>me.flyworld</string>
<key>bundle-version</key>
<string>01210251551</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>Test OTA App V2.3</string>
</dict>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment