{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13249","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13249/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13249/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13249/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/13249","id":148892292,"number":13249,"title":"15116709: If MCAdvertiserAssistant or MCNearbyServiceAdvertiser discoveryInfo is too large nothing works and no warnings","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:crash/hang/data%20loss","name":"classification:crash/hang/data loss","color":"e11d21"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/4","html_url":"https://github.com/lionheart/openradar-mirror/milestones/iOS%20SDK","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/4/labels","id":1237418,"number":4,"title":"iOS SDK","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":2243,"closed_issues":3,"state":"open","created_at":"2015-08-03T02:08:31Z","updated_at":"2016-04-16T21:02:50Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-16T21:02:50Z","updated_at":"2016-04-16T21:02:50Z","closed_at":null,"body":"#### Description\n\nSummary:\r\nIf the dictionary you pass for discoveryInfo in  \r\n-[MCNearbyServiceAdvertiser initWithPeer:discoveryInfo:serviceType:]\r\nor\r\n-[MCAdvertiserAssistant initWithServiceType:discoveryInfo:session:]\r\nNOTHING happens.\r\n\r\nNo warnings or errors and nothing happens on the device advertising as well as nothing on the browsing device.\r\nIt acts like it just never ran.\r\n\r\nThis leads to not knowing what is happening.\r\nAt very least a warning should be logged.\r\n\r\nSteps to Reproduce:\r\n1. Use MCNearbyServiceAdvertiser or MCAdvertiserAssistant and pass in a large dictionary (such as one containing NSData for a small image) for the discoveryInfo and create the rest of a MC NearBy project normally.\r\n2. Run and notice nothing happens with advertising, and there is no logging of any sorts.\r\n3. Change the discoveryInfo to nil or a small dictionary and try again, and see that it works.\r\n\r\nExpected Results:\r\nEither a warning or error should be logged.\r\nPerhaps if the discoveryInfo is too large the object is not created and instead returns nil.\r\nPerhaps is its too large it just ignores the discoveryInfo and works as if the discoveryInfo had been set as nil. This with an warning/error logged to the console would make it so things still somewhat work, while at the same time letting the developer know what the problem is.\r\n\r\nActual Results:\r\nNo warnings or errors and nothing happens on the device advertising as well as nothing on the browsing device.\r\nIt acts like it just never ran.\r\n\r\nThis leads to not knowing what is happening.\r\n\r\nVersion:\r\nXcode 5 and iOS 7.0, 7.0.1, 7.0.2\r\n\r\nNotes:\r\n\r\n\r\nConfiguration:\r\nHappens when the discoveryInfo is larger then is allowed (as listed in docs)\r\n\r\nHappens in attached sample code.\r\nAlso happens in Apple's own sample code \"MultipeerGroupChat\" if you pass a large dictionary to the discoveryInfo \r\n(https://developer.apple.com/library/ios/samplecode/MultipeerGroupChat/)\r\n\r\nAttachments:\r\n'MultipeerConnectivity.zip' was successfully uploaded.\n\n-\nProduct Version: 7.0.2\nCreated: 2013-09-30T23:43:25.619730\nOriginated: 2013-09-30T16:39:00\nOpen Radar Link: http://www.openradar.me/15116709"}}