I'd like to distribute my Beta Adhoc builds on my own server. There seems to be 2 important URLs in the logic Apple uses to install apps over the air.
The first url is in the HTML:
<p><a href="itms-services://?action=download-manifest&url=http://www.example.com.cn/path/to/plist/theplist.plist">Adhoc Build</a></p>
The second is inside that plist file
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>http://www.example.com.cn/path/to/binary/app.ipa</string>
</dict>
Can those urls be relative? I'd like the same HTML and XML files to work on both my development machine (MAMP server), to test first that I can download the binary, then publish the adhoc build to my testers on my web server (NGINX). Currently I can only get it to work with an absolute url.
My thought is that these two relative URLs should work
<p><a href="itms-services://?action=download-manifest&url=/path/to/plist/theplist.plist">Adhoc Build</a></p>
and
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>/path/to/binary/app.ipa</string>
</dict>
When I use those relative URLs I get a popup from the device when I click saying "Cannot connect to (null)"