{"action":"created","issue":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-iOS/issues/145","labels_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-iOS/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-iOS/issues/145/comments","events_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-iOS/issues/145/events","html_url":"https://github.com/ConnectSDK/Connect-SDK-iOS/issues/145","id":69838241,"number":145,"title":"AirPlay: Device Immediate Disconnect","user":{"login":"stormsoftware","id":11520619,"avatar_url":"https://avatars.githubusercontent.com/u/11520619?v=3","gravatar_id":"","url":"https://api.github.com/users/stormsoftware","html_url":"https://github.com/stormsoftware","followers_url":"https://api.github.com/users/stormsoftware/followers","following_url":"https://api.github.com/users/stormsoftware/following{/other_user}","gists_url":"https://api.github.com/users/stormsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/stormsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormsoftware/subscriptions","organizations_url":"https://api.github.com/users/stormsoftware/orgs","repos_url":"https://api.github.com/users/stormsoftware/repos","events_url":"https://api.github.com/users/stormsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/stormsoftware/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-iOS/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"eunikolsky","id":9215359,"avatar_url":"https://avatars.githubusercontent.com/u/9215359?v=3","gravatar_id":"","url":"https://api.github.com/users/eunikolsky","html_url":"https://github.com/eunikolsky","followers_url":"https://api.github.com/users/eunikolsky/followers","following_url":"https://api.github.com/users/eunikolsky/following{/other_user}","gists_url":"https://api.github.com/users/eunikolsky/gists{/gist_id}","starred_url":"https://api.github.com/users/eunikolsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eunikolsky/subscriptions","organizations_url":"https://api.github.com/users/eunikolsky/orgs","repos_url":"https://api.github.com/users/eunikolsky/repos","events_url":"https://api.github.com/users/eunikolsky/events{/privacy}","received_events_url":"https://api.github.com/users/eunikolsky/received_events","type":"User","site_admin":false},"milestone":null,"comments":19,"created_at":"2015-04-21T12:54:15Z","updated_at":"2015-04-23T23:00:03Z","closed_at":"2015-04-23T22:14:42Z","body":"Sometimes when connecting to my Apple TV (3rd gen), the device automatically gets disconnected as soon as the device connects.\r\nI've been debugging and i've found that the device's targetURL is incorrect when checking for reachability in DeviceServiceReachability.m, Line 63 onwards:\r\n- (void) checkReachability\r\n{\r\n    if (!_running)\r\n        return;\r\n\r\n    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:self.targetURL];\r\n    [request setTimeoutInterval:10];\r\n    [request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];\r\n\r\nI can see that when the problem doesn't occur the self.targetURL used the Apple TV's IP address and when the problem does occur it uses something entirely different, possibly the device's MAC address?\r\n\r\nHas anybody else experienced this issue?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-iOS/issues/comments/95740540","html_url":"https://github.com/ConnectSDK/Connect-SDK-iOS/issues/145#issuecomment-95740540","issue_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-iOS/issues/145","id":95740540,"user":{"login":"DevelopIdeas","id":1929057,"avatar_url":"https://avatars.githubusercontent.com/u/1929057?v=3","gravatar_id":"","url":"https://api.github.com/users/DevelopIdeas","html_url":"https://github.com/DevelopIdeas","followers_url":"https://api.github.com/users/DevelopIdeas/followers","following_url":"https://api.github.com/users/DevelopIdeas/following{/other_user}","gists_url":"https://api.github.com/users/DevelopIdeas/gists{/gist_id}","starred_url":"https://api.github.com/users/DevelopIdeas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevelopIdeas/subscriptions","organizations_url":"https://api.github.com/users/DevelopIdeas/orgs","repos_url":"https://api.github.com/users/DevelopIdeas/repos","events_url":"https://api.github.com/users/DevelopIdeas/events{/privacy}","received_events_url":"https://api.github.com/users/DevelopIdeas/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T23:00:03Z","updated_at":"2015-04-23T23:00:03Z","body":"@eunikolsky fantastic! slight typo on my end for the string formatting! I'm happy I could contribute!"}}