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.
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?
thanks nabren. is this code true?
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/3.2">
<id>com.ercanerdal.</id>
<versionNumber>1.0</versionNumber>
<filename>dosyadeneme</filename>
<description/>
<!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
<name>dosyadeneme</name>
<!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
<copyright/>
<initialWindow>
<content>dosyadeneme.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>auto</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<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>
</application>
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
I'm sorry to ask again. also have an xml file like this one. manifestos in there. such use appropriate? Added to the previous block of code at
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/3.2">
<id>com.ercanerdal.</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel/>
<filename>APP</filename>
<description/>
<!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
<name>APP</name>
<!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
<copyright/>
<initialWindow>
<content>SEZONLIFE_20_ios_2.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions>
<![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
</manifest>]]>
</manifestAdditions>
</android>
<supportedLanguages>tr</supportedLanguages>
<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>
</application>
North America
Europe, Middle East and Africa
Asia Pacific