Skip navigation
Currently Being Moderated

web connection working Android, in iOS not working!

Feb 6, 2013 8:25 AM

Tags: #web #ios #connection

hello. I made ​​an application with AIR for Android. This practice creates an xml file via php. xml file is the sdcard'a download. internet connection with this application, but in no way can not use air for ios. So what to do with AIR for iOS can not use wifi nor 3g. AIR for iOS developer for the packing and distribution as well as provisions have tried with. There's nothing wrong codes. I ran the sample code I found on the internet but the internet connection does not use in any way, sdcard'a can not download anything.

 
Replies
  • Currently Being Moderated
    Feb 6, 2013 8:29 AM   in reply to Ugur Gelisken

    In your AIR XML should be an <iPhone> block - if this does not exist, create one. In the <InfoAdditions> section try adding a couple nodes related to wifi if they do not exist (UIRequiresPersistentWiFi and UIRequiredDeviceCapabilities)

     

    So without any other nodes it should look like:

     

    <iPhone>

              <InfoAdditions>

                        <![CDATA[

                        <key>UIRequiresPersistentWiFi</key>

                        <string>YES</string>

                        <key>UIRequiredDeviceCapabilities</key>

                        <array>

                                  <string>wifi</string>

                        </array>

              ]]>

              </InfoAdditions>

    </iPhone>

     

    Does that fix it?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 6, 2013 9:10 AM   in reply to Ugur Gelisken

    Make sure to put it in the CDATA block:

     

    <iPhone>

              <InfoAdditions>

                        <![CDATA[

                        <key>UIDeviceFamily</key>

                        <array>

                        <string>1</string>

                        <string>2< /string>

                        </array>

                        <key>UIRequiresPersistentWiFi</key>

                        <string>YES</string>

                        <key>UIRequiredDeviceCapabilities</key>

                        <array>

                        <string>wifi</string>

                        </array>

              ]]></InfoAdditions>

              <requestedDisplayResolution>standard</requestedDisplayResolution >

    </iPhone>

     

    Replace your iPhone section with that

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 6, 2013 9:37 AM   in reply to Ugur Gelisken

    That looks right. The main XML you are concerned with is generally named after the main class of your project and is also directly under the src folder at the root level.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 11, 2013 11:48 AM   in reply to Ugur Gelisken

    Good Job man, my .ipa run good in my iPhone.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points