{"action":"created","issue":{"url":"https://api.github.com/repos/Uepaa-AG/p2pkit-quickstart-ios/issues/2","labels_url":"https://api.github.com/repos/Uepaa-AG/p2pkit-quickstart-ios/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Uepaa-AG/p2pkit-quickstart-ios/issues/2/comments","events_url":"https://api.github.com/repos/Uepaa-AG/p2pkit-quickstart-ios/issues/2/events","html_url":"https://github.com/Uepaa-AG/p2pkit-quickstart-ios/issues/2","id":118155618,"number":2,"title":"PPKPeer's discoveryInfo contains nil value when it shouldn't","user":{"login":"brandonemrich","id":367268,"avatar_url":"https://avatars.githubusercontent.com/u/367268?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonemrich","html_url":"https://github.com/brandonemrich","followers_url":"https://api.github.com/users/brandonemrich/followers","following_url":"https://api.github.com/users/brandonemrich/following{/other_user}","gists_url":"https://api.github.com/users/brandonemrich/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonemrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonemrich/subscriptions","organizations_url":"https://api.github.com/users/brandonemrich/orgs","repos_url":"https://api.github.com/users/brandonemrich/repos","events_url":"https://api.github.com/users/brandonemrich/events{/privacy}","received_events_url":"https://api.github.com/users/brandonemrich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-21T00:31:25Z","updated_at":"2015-11-27T10:22:24Z","closed_at":null,"body":"About 1/3 of the time I run my project on one device while the other device is in the background. The background device doesn't send it's discoveryInfo, but still completes p2p discovery. Fairly certain that this isn't an issue with my implementation since the integration was pretty straight forward. \r\n\r\nAny insight or help is much appreciated!\r\nBrandon"},"comment":{"url":"https://api.github.com/repos/Uepaa-AG/p2pkit-quickstart-ios/issues/comments/160106462","html_url":"https://github.com/Uepaa-AG/p2pkit-quickstart-ios/issues/2#issuecomment-160106462","issue_url":"https://api.github.com/repos/Uepaa-AG/p2pkit-quickstart-ios/issues/2","id":160106462,"user":{"login":"thupa","id":11856641,"avatar_url":"https://avatars.githubusercontent.com/u/11856641?v=3","gravatar_id":"","url":"https://api.github.com/users/thupa","html_url":"https://github.com/thupa","followers_url":"https://api.github.com/users/thupa/followers","following_url":"https://api.github.com/users/thupa/following{/other_user}","gists_url":"https://api.github.com/users/thupa/gists{/gist_id}","starred_url":"https://api.github.com/users/thupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thupa/subscriptions","organizations_url":"https://api.github.com/users/thupa/orgs","repos_url":"https://api.github.com/users/thupa/repos","events_url":"https://api.github.com/users/thupa/events{/privacy}","received_events_url":"https://api.github.com/users/thupa/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T10:22:24Z","updated_at":"2015-11-27T10:22:24Z","body":"Hi Brandon,\r\n\r\nMay I ask what do you mean \"device doesn't send it's discoveryInfo\" ? do you get a `func p2pPeerDiscovered(peer: PPKPeer!)` callback and the `PPKPeer.discoveryInfo` value is nil?\r\n\r\nOn a general note, If you are using discovery info, you should start p2p discovery in the following way:\r\n```swift\r\nPPKController.startP2PDiscoveryWithDiscoveryInfo(myDiscoveryInfo)\r\n```\r\n\r\nIn case you are accidentally starting P2PDiscovery without the discoveryInfo, and only at a later point call ```PPKController.pushNewP2PDiscoveryInfo(myDiscoveryInfo)``` naturally there is the possibility that first you would discover the peer without the info, and the method ```func didUpdateP2PDiscoveryInfoForPeer(peer: PPKPeer!)``` will follow at a later stage"}}