{"action":"created","issue":{"url":"https://api.github.com/repos/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/89","labels_url":"https://api.github.com/repos/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/89/comments","events_url":"https://api.github.com/repos/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/89/events","html_url":"https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/89","id":65332612,"number":89,"title":"Crash After Initial Pushlink","user":{"login":"tannernelson","id":1342803,"avatar_url":"https://avatars.githubusercontent.com/u/1342803?v=3","gravatar_id":"","url":"https://api.github.com/users/tannernelson","html_url":"https://github.com/tannernelson","followers_url":"https://api.github.com/users/tannernelson/followers","following_url":"https://api.github.com/users/tannernelson/following{/other_user}","gists_url":"https://api.github.com/users/tannernelson/gists{/gist_id}","starred_url":"https://api.github.com/users/tannernelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannernelson/subscriptions","organizations_url":"https://api.github.com/users/tannernelson/orgs","repos_url":"https://api.github.com/users/tannernelson/repos","events_url":"https://api.github.com/users/tannernelson/events{/privacy}","received_events_url":"https://api.github.com/users/tannernelson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-31T00:15:51Z","updated_at":"2015-04-19T02:32:03Z","closed_at":null,"body":"I'm using Swift with the Hue SDK and I'm experiencing a crash right after the first push link. My code is almost exactly what appears in the sample app, except translated to Swift.\r\n\r\nThe authentication is successful and a couple of \"local connection\" heart beat messages are received. But after 3 or 4 the app crashes. Sometimes yielding an error message saying `allResourcesHeartbeatFiredLocal unrecognized sender sent to instance` or other times saying `[PHSchedulerTask exectue]` `[PHScheduler executeNextTask]`\r\n\r\n![screen shot 2015-03-30 at 8 15 35 pm](https://cloud.githubusercontent.com/assets/1342803/6909894/8c2e22d8-d719-11e4-981e-53e98e1aed3a.png)\r\n "},"comment":{"url":"https://api.github.com/repos/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/comments/94225704","html_url":"https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/89#issuecomment-94225704","issue_url":"https://api.github.com/repos/PhilipsHue/PhilipsHueSDK-iOS-OSX/issues/89","id":94225704,"user":{"login":"philwebster","id":763550,"avatar_url":"https://avatars.githubusercontent.com/u/763550?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebster","html_url":"https://github.com/philwebster","followers_url":"https://api.github.com/users/philwebster/followers","following_url":"https://api.github.com/users/philwebster/following{/other_user}","gists_url":"https://api.github.com/users/philwebster/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebster/subscriptions","organizations_url":"https://api.github.com/users/philwebster/orgs","repos_url":"https://api.github.com/users/philwebster/repos","events_url":"https://api.github.com/users/philwebster/events{/privacy}","received_events_url":"https://api.github.com/users/philwebster/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T02:32:03Z","updated_at":"2015-04-19T02:32:03Z","body":"Hey Tanner, I just ran into this issue myself. From what I can tell, whenever you create an sdk instance, you also need to set up a PHNotificationManager and register it for three notifications:\r\n\r\n```objc\r\nPHNotificationManager *notificationManager = [PHNotificationManager defaultManager];\r\n[notificationManager registerObject:self withSelector:@selector(localConnection) forNotification:LOCAL_CONNECTION_NOTIFICATION];\r\n[notificationManager registerObject:self withSelector:@selector(noLocalConnection) forNotification:NO_LOCAL_CONNECTION_NOTIFICATION];\r\n[notificationManager registerObject:self withSelector:@selector(notAuthenticated) forNotification:NO_LOCAL_AUTHENTICATION_NOTIFICATION];\r\n```\r\n\r\nNote that you can create a method that does nothing and register that for the notifications."}}