Hi folks,
I'm tearing my hair out trying to load a feature service table in a background thread, as below. This works fine on the main iOS thread. But in a background thread no network activity occurs. I confirmed using Charles proxy server.
Hard to understand why, as it appears to block the main thread. My app locks up while these calls are occurring. Have I missed something?
Thanks,
Simon
dispatch_queue_t backgroundLoadThread = dispatch_queue_create("com.xyz.loadservicethread", NULL);
dispatch_async(backgroundLoadThread, ^(void) {
AGSGDBFeatureServiceTable* fst = [[AGSGDBFeatureServiceTable alloc]initWithServiceURL:url
credential:myCredentials
spatialReference:mapView.spatialReference];
...