I am using Esri IOS sdk version 100.6 in our iOS application with below basemaps:
openStreetMapBasemap
imageryWithLabels
terrainWithLabelsVector
Application is running fine on simulator when none of the urls are blocked. However when I am running the application on iPhone "openStreetMapBasemap" is not loading and others are very slow in moving. I know this is because our VPN is blocking urls that are called by maps Esri sdk.
So I want to know list of urls that our security team should whitelist for this application. Please advise.
Currently we have whitelisted as per below documentL
https://downloads.esri.com/resources/enterprisegis/AGOL_Domain_Requirements.pdf
But still "openStreetMapBasemap" is not loading.
Thanks.
Solved! Go to Solution.
Try whitelisting *.arcgis.com and *.openstreetmap.org
Try whitelisting *.arcgis.com and *.openstreetmap.org
@william Do you mean I should only whitelist *.arcgis.com and *.openstreetmap.org and remove the other whitelisted from this link: https://downloads.esri.com/resources/enterprisegis/AGOL_Domain_Requirements.pdf
OR I shall whitelist all of them.
Also is there any resource for the url list that should be whitelisted because our cybersecurity team may want that before doing that.
Whitelisting the PDF at the URL you provided won't help anything. However, it actually provides the very reference you're asking for. These are the domains it suggests to whitelist in order ArcGIS Online capabilities to work properly:
https://ago-item-storage.s3.amazonaws.com
A couple of notes.
AGSRequestConfiguration.global().debugLogRequests = true
From that I could see that you'd need to whitelist openstreetmap.org.2020-02-21 12:20:23.475207-0500 TestOSM[30781:5832027] **------>> sending request**
- [https://a.tile.openstreetmap.org/0/0/0.png](https://a.tile.openstreetmap.org/0/0/0.png)
- GET
-----
2020-02-21 12:20:23.608706-0500 TestOSM[30781:5832024] **------>> sending request**
- [https://b.tile.openstreetmap.org/1/0/0.png](https://b.tile.openstreetmap.org/1/0/0.png)
- GET
-----
let osmItem = AGSPortalItem(portal: .arcGISOnline(withLoginRequired: false),
itemID: "3e1a00aeae81496587988075fe529f71")
let osmVectorLayer = AGSArcGISVectorTiledLayer(item: osmItem)
let map = AGSMap(basemap: AGSBasemap(baseLayer: osmVectorLayer))
Hope this helps!
Totally off topic - but how did I never notice that OSM has little dog-prints when you zoom in on a dog park?
+1 OSM... Your move ESRI!