GTLServiceYouTube executeQuery
callback not called when I execute it in background thread.Video wont get uploaded. It works fine when I execute it in main thread.I
I found a solution! Here whats happening is, when I run the code in background thread, before the callback comes the thread is detached. Hence we don't get the callback. When I run it in main thread, main Thread remains alive throughout. Hence we do get callback. Hence this problem can be solved by making current thread to wait using following code.
[[NSRunLoop currentRunLoop] runUntilDate:stopDate];