IOS Swift - Proxy Setup

218
4
2 weeks ago
Labels (1)
JyoshnaRani
New Contributor II

How to setup proxy in Swift for IOS Devices.

Please provide sample code example for this setup.  

Tags (3)
0 Kudos
4 Replies
NimeshJarecha
Esri Regular Contributor

Hi @JyoshnaRani,

Could you please provide more details about the type of proxy you want to set up and your specific use case? This will help me understand your requirements better and provide a more accurate and relevant response.

Regards,

Nimesh

0 Kudos
JyoshnaRani
New Contributor II

Hello Nimesh,

Please see my sample code what exactly I am trying. 

Local Server Connection:

var featureLayers = [FeatureLayer(featureTable: ServiceFeatureTable(url: URL(string: "https://localhosturl.com")!))]
map.addOperationalLayers(featureLayers)

Note: In local server where proxy is not required there "FeatureLayer" is adding into a  arcgis map.  

Live Server Connection(Prod):

var featureLayers = [FeatureLayer(featureTable: ServiceFeatureTable(url: URL(string: "https://myserver/api/maps/proxy?https://localhosturl.com")!))]
map.addOperationalLayers(featureLayers)

Note:  But same coding only URL changed for production build,  "FeatureLayer" is not adding in map.

For the security purpose prod build has proxy setup - "https://myserver/api/maps/proxy?" in the prefix of the FeatureLayer URL.

Hope I explained you about my query.

0 Kudos
NimeshJarecha
Esri Regular Contributor

Hi @JyoshnaRani ,

Thanks for providing additional information. As you spotted my response in another thread, the SDK does not support the proxy url format you are using.

Regards.

Nimesh 

0 Kudos
JyoshnaRani
New Contributor II

Hello @NimeshJarecha,

Thank you for this info, but is there any upcoming packages or libraries or any other concept which will accept proxy URL as Layers in Map View. Please let me know.

Or else whenever concept will available, please notify me. 

0 Kudos