{"action":"created","issue":{"url":"https://api.github.com/repos/ably/ably-ios/issues/536","repository_url":"https://api.github.com/repos/ably/ably-ios","labels_url":"https://api.github.com/repos/ably/ably-ios/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/ably/ably-ios/issues/536/comments","events_url":"https://api.github.com/repos/ably/ably-ios/issues/536/events","html_url":"https://github.com/ably/ably-ios/pull/536","id":190057078,"number":536,"title":"Fix: check if authCallback is running on a background queue","user":{"login":"ricardopereira","id":3541185,"avatar_url":"https://avatars.githubusercontent.com/u/3541185?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardopereira","html_url":"https://github.com/ricardopereira","followers_url":"https://api.github.com/users/ricardopereira/followers","following_url":"https://api.github.com/users/ricardopereira/following{/other_user}","gists_url":"https://api.github.com/users/ricardopereira/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardopereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardopereira/subscriptions","organizations_url":"https://api.github.com/users/ricardopereira/orgs","repos_url":"https://api.github.com/users/ricardopereira/repos","events_url":"https://api.github.com/users/ricardopereira/events{/privacy}","received_events_url":"https://api.github.com/users/ricardopereira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-17T14:09:27Z","updated_at":"2016-11-17T16:22:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ably/ably-ios/pulls/536","html_url":"https://github.com/ably/ably-ios/pull/536","diff_url":"https://github.com/ably/ably-ios/pull/536.diff","patch_url":"https://github.com/ably/ably-ios/pull/536.patch"},"body":"#531\r\n - interacting with certain frameworks like UIKit, we need to ensure that all calls happen from the main thread."},"comment":{"url":"https://api.github.com/repos/ably/ably-ios/issues/comments/261293334","html_url":"https://github.com/ably/ably-ios/pull/536#issuecomment-261293334","issue_url":"https://api.github.com/repos/ably/ably-ios/issues/536","id":261293334,"user":{"login":"ricardopereira","id":3541185,"avatar_url":"https://avatars.githubusercontent.com/u/3541185?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardopereira","html_url":"https://github.com/ricardopereira","followers_url":"https://api.github.com/users/ricardopereira/followers","following_url":"https://api.github.com/users/ricardopereira/following{/other_user}","gists_url":"https://api.github.com/users/ricardopereira/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardopereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardopereira/subscriptions","organizations_url":"https://api.github.com/users/ricardopereira/orgs","repos_url":"https://api.github.com/users/ricardopereira/repos","events_url":"https://api.github.com/users/ricardopereira/events{/privacy}","received_events_url":"https://api.github.com/users/ricardopereira/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T16:22:36Z","updated_at":"2016-11-17T16:22:36Z","body":"BTW, for the record:\r\n\r\n```\r\n@implementation AppDelegate {\r\n    ARTClientOptions *_clientOptions;\r\n    ARTRealtime *_client;\r\n}\r\n\r\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\r\n    _clientOptions = [[ARTClientOptions alloc] init];\r\n    _clientOptions.authCallback = ^(ARTTokenParams *params, void(^callback)(id<ARTTokenDetailsCompatible>, NSError*)) {\r\n        callback(nil, [NSError errorWithDomain:@\"localhost\" code:0 userInfo:nil]);\r\n    };\r\n    _client = [[ARTRealtime alloc] initWithOptions:_clientOptions];\r\n    [_client.connection on:^(ARTConnectionStateChange *stateChange) {\r\n        NSLog(@\"%@\", stateChange);\r\n    }];\r\n    return YES;\r\n}\r\n\r\n@end\r\n```\r\n\r\nThe `callback(nil, [NSError errorWithDomain:@\"localhost\" code:0 userInfo:nil]);` was not called."}}
{"actor":{"display_login":"ricardopereira"}}