Select to view content in your preferred language

(iOS) ArcGISPortal.CreateAsync() times out in Airplane Mode

425
2
03-30-2026 11:49 AM
Labels (3)
EricLiu
Occasional Contributor

Hello, we have a third-party client whose app is loading slowly when their iPad is in airplane mode. Upon inspecting the logs, it seems that in the app, the call to 'ArcGISPortal.CreateAsync()' is timing out repeatedly.

In Screenshot ... 113032, we see the call go from 'ArcGISPortal.CreateAsync()' to a time out in GetResponseAsync. 

In our attempt to reproduce the issue (Screenshot ... 113729), we couldn't get the call to 'ArcGISPortal.CreateAsync()' to time out. Instead it always failed with the exception immediately.

My aim is for all request by the ArcGIS runtime to fail immediately if there's no connection, and never time out. If Esri can spot what's causing the time out it would be awesome. Any troubleshooting steps are also appreciated.

Maui 9.0.120. .NET 9. iOS 26.2+. ArcGIS 200.8.1. Happens on iPad A16 and iPad 9th Gen.

EDIT: Got it to repro. Seems like the iOS device needed to be on a VPN (I was using the Proton VPN app) before the app is terminated and airplane mode turned on. Then once you reopen the app and it calls ArcGISPortal.CreateAsync(), the time out occurs.

0 Kudos
2 Replies
EricLiu
Occasional Contributor

To add, its possible we were calling ArcGISPortal.CreateAsync() in a loop. The GetResponseAsync() makes me think the ArcGISMessageHandler is using HttpWebRequest (instead of HttpClient) underneath the hood. 

https://stackoverflow.com/questions/21903837/httpwebresponse-get-stuck-while-running-in-a-loop. I found this discussion about HttpWebRequest getting stuck. Could it be related ?

 

0 Kudos
EricLiu
Occasional Contributor

Nvm it wasn't this.

0 Kudos