Cannot connect to website for iPhone App
Asked Answered
P

4

6

I have an iOS Enterprise account. I attached my provision file as a link and also my plist using the itms-services protocol. I'm running on Ubuntu 10.04 LTS with Apache2 server. I already added the Mime types to /etc/mimes.types. When I follow the log I can see the provision gets pulled down, without a problem, and the plist by itself can, but when I use my iPad to pull down the app clicking on items-services protocol link, it doesn't seem to let me download it. It keeps telling me that it can't connect to the URL inside of an iOS pop up box.

I'm using this link (with domain name stubbed out):

<a href="itms-services://?action=download-manifest&url=https://server.com/apps/StockCountApp.plist">
            Install Stock Count Application</a>

Here is my plist:

?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://server.com/apps/StockCountApp.ipa</string>
                            </dict>
                    </array>
                    <key>metadata</key>
                    <dict>
                            <key>bundle-identifier</key>
                            <string>com.server.StockCountApp</string>
                            <key>bundle-version</key>
                            <string>0.0.1</string>
                            <key>kind</key>
                            <string>software</string>
                            <key>title</key>
                            <string>StockCount</string>
                    </dict>
            </dict>
    </array>
</dict>
</plist>

I can get to the plist using https and i can use the link for the IPA inside of the plist to also get the IPA without a problem, but for some weird reason I can't seem to get the IPA using the itms protocol using an iDevice.

Does anyone know how to solve this problem?

Palladic answered 21/6, 2012 at 4:43 Comment(1)
I am also facing same issue .If you got solution means pleas provide me .Thanks .Anastase
B
3

Your plist and links are correct

Check authentication on your server on this page and plist file request. Because cookies of your browser do not send them to itunes on device. Your plist file must be available without auth.

Bunker answered 15/3, 2013 at 12:11 Comment(2)
And if you generate plist programatically on server be sure what content-type = application/xmlBunker
Honestly, it is too late. I already left that job, but will have to check into it next time, if i get the chance to do something like this.Palladic
J
2

As @Antaresm said Content-Type MUST be application/xml and NOT text/xml as everyone else says!!

Jovitajovitah answered 22/4, 2014 at 12:39 Comment(0)
T
0

This is obviously too late to solve your problem but this note may solve somebody else's problem.

I saw that same message when I forgot to upload the <appname>.plist file to the web server. Once I uploaded the *.plist file the "Cannot connect to <domain>" pop up box went away.

Titty answered 27/8, 2012 at 4:16 Comment(1)
I'll take a look. Actually didn't solve this problem yet. Doing local installation instead.Palladic
R
0

Another factor (last chance, pulling my hair out) is that the webserver is serving only standard files (html, xml, asp, js, etc). I asked Fasthosts to double check and they modified the config to allow .ipa and .plist to be served as valid file extensions, and finally, it works.

Rationalism answered 20/6, 2017 at 12:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.