Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot connect to website for iPhone App

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?

like image 542
Allen Avatar asked Jun 21 '12 04:06

Allen


People also ask

Why can't I access some websites on my iPhone?

Connect to a different network If you don't have a mobile data connection, connect to a different Wi-Fi network, then load the website again. If you're using a VPN (Virtual Private Network), check your VPN settings. If you have a VPN turned on, some apps or websites may block content from being loaded.

Why won't my app connect to the internet?

Restart your device. If restarting doesn't work, switch between Wi-Fi and mobile data: Open your Settings app and tap Network & internet or Connections. Depending on your device, these options may be different. Turn Wi-Fi off and mobile data on, and check if there's a difference.

How do I clear my App Store cache on my iPhone?

Click Apple in the central panel and find the App Store. Click the side arrow and select all app's files. Choose Reset from the option list. Press the Reset button.

How do I fix Safari not loading web pages on iPhone?

You can clear website data occasionally to improve Safari performance. Go to Settings > Safari. Tap Clear History and Website Data. Tap Clear History and Data to confirm.


2 Answers

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.

like image 81
Antaresm Avatar answered Oct 19 '22 07:10

Antaresm


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

like image 43
Adaptabi Avatar answered Oct 19 '22 09:10

Adaptabi