AnsweredAssumed Answered

AGSGDBFeatureServiceTable load in background thread

Question asked by simonfox on Mar 28, 2015
Latest reply on Apr 14, 2015 by simonfox

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?


dispatch_queue_t backgroundLoadThread = dispatch_queue_create("", NULL);

dispatch_async(backgroundLoadThread, ^(void) {


     AGSGDBFeatureServiceTable* fst = [[AGSGDBFeatureServiceTable alloc]initWithServiceURL:url