FeatureLaye/query resultsr not showing up on IOS

761
6
Jump to solution
12-15-2012 09:47 AM
ZahidChaudhry
Occasional Contributor III
I converted one of my flex app to IOS/Android native apps using Flash builder, flex 4.6 and ESRI Flex API 3.1
IT work as it suppose both in browser and on Android but feature layer and query doesn't work on IOS. (App works fine in simulator but not on device).

Very Strange Behavior: It works on 3g OR Cell network but not on WIFI. Query and featureLayer is not working on WIFI.

Any thoughts? is it a bug or?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LloydHeberlie
Occasional Contributor
I mean Feature dont show up on map and query doesnt return anythying...works perfect on Android and on Cell network when I am on Iphone. I am seeing this problem only on IOS on WIFI...

THanks


Hi Zahid,

I just tested a very simple example of this using the following configuration:
FlashBuilder 4.6
updated Flex SDK: 4.6.0 using AIR SDK 3.4
iPad 2 (wifi only version)
iOS 6.0 (10A403)
ArcGIS 3.1 API for Flex (agslib-3.1-2012-12-12.swc)

Here's the very simple code:
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"         xmlns:s="library://ns.adobe.com/flex/spark"         xmlns:ns="http://www.esri.com/2008/ags"         actionBarVisible="false"         title="HomeView">     <fx:Declarations>         <!-- Place non-visual elements (e.g., services, value objects) here -->     </fx:Declarations>     <ns:Map level="14" zoomSliderVisible="false">         <ns:center>             <ns:WebMercatorMapPoint lon="-122.442594" lat="37.760715"/>         </ns:center>         <ns:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"/>         <ns:FeatureLayer url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/0"/>     </ns:Map> </s:View>


[ATTACH=CONFIG]20011[/ATTACH]

If you open a browser (such as Safari) on the device, are you able to load the JSON? Such as http://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/0?f=json

[ATTACH=CONFIG]20013[/ATTACH]

Here's a blog article by written by Andy Gup on how to upgrade your AIR SDK inside of the Flex SDK.  If you're using a Mac it is a little different, but not too complicated.  I can post that information too if you need it.

Hope this helps,

View solution in original post

0 Kudos
6 Replies
HeatherGonzago
Esri Contributor
I converted one of my flex app to IOS/Android native apps using Flash builder, flex 4.6 and ESRI Flex API 3.1
IT work as it suppose both in browser and on Android but feature layer and query doesn't work on IOS. (App works fine in simulator but not on device).

Very Strange Behavior: It works on 3g OR Cell network but not on WIFI. Query and featureLayer is not working on WIFI.

Any thoughts? is it a bug or?


When you say it doesn't work? What exactly is not working? Are you receiving errors?
0 Kudos
ZahidChaudhry
Occasional Contributor III
When you say it doesn't work? What exactly is not working? Are you receiving errors?

I mean Feature dont show up on map and query doesnt return anythying...works perfect on Android and on Cell network when I am on Iphone. I am seeing this problem only on IOS on WIFI...

THanks
0 Kudos
LloydHeberlie
Occasional Contributor
I mean Feature dont show up on map and query doesnt return anythying...works perfect on Android and on Cell network when I am on Iphone. I am seeing this problem only on IOS on WIFI...

THanks


Hi Zahid,

I just tested a very simple example of this using the following configuration:
FlashBuilder 4.6
updated Flex SDK: 4.6.0 using AIR SDK 3.4
iPad 2 (wifi only version)
iOS 6.0 (10A403)
ArcGIS 3.1 API for Flex (agslib-3.1-2012-12-12.swc)

Here's the very simple code:
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"         xmlns:s="library://ns.adobe.com/flex/spark"         xmlns:ns="http://www.esri.com/2008/ags"         actionBarVisible="false"         title="HomeView">     <fx:Declarations>         <!-- Place non-visual elements (e.g., services, value objects) here -->     </fx:Declarations>     <ns:Map level="14" zoomSliderVisible="false">         <ns:center>             <ns:WebMercatorMapPoint lon="-122.442594" lat="37.760715"/>         </ns:center>         <ns:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"/>         <ns:FeatureLayer url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/0"/>     </ns:Map> </s:View>


[ATTACH=CONFIG]20011[/ATTACH]

If you open a browser (such as Safari) on the device, are you able to load the JSON? Such as http://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/0?f=json

[ATTACH=CONFIG]20013[/ATTACH]

Here's a blog article by written by Andy Gup on how to upgrade your AIR SDK inside of the Flex SDK.  If you're using a Mac it is a little different, but not too complicated.  I can post that information too if you need it.

Hope this helps,
0 Kudos
ZahidChaudhry
Occasional Contributor III
Thanks For Help. I restarted my phone and it started working. I am looking more into it that what the issue is.
0 Kudos
DasaPaddock
Esri Regular Contributor
Are you using an iPhone 5 or iPad mini? If so, iOS 6.0.2 may help:
http://support.apple.com/kb/DL1621
0 Kudos
ZahidChaudhry
Occasional Contributor III
Are you using an iPhone 5 or iPad mini? If so, iOS 6.0.2 may help:
http://support.apple.com/kb/DL1621


Thanks. I am using Iphone 4S and version 6.0.1. I am having same problem with other apps too eg. Chase Banks app..it works better without wi-fi ...But look like that this new fix will help/improve....

Thanks again
0 Kudos