{"action":"opened","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/issues/1202","repository_url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/issues/1202/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/issues/1202/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/xamarin-docs/issues/1202/events","html_url":"https://github.com/MicrosoftDocs/xamarin-docs/issues/1202","id":387795881,"node_id":"MDU6SXNzdWUzODc3OTU4ODE=","number":1202,"title":"Network operations with HttpClient","user":{"login":"breyed","id":1299073,"node_id":"MDQ6VXNlcjEyOTkwNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/1299073?v=4","gravatar_id":"","url":"https://api.github.com/users/breyed","html_url":"https://github.com/breyed","followers_url":"https://api.github.com/users/breyed/followers","following_url":"https://api.github.com/users/breyed/following{/other_user}","gists_url":"https://api.github.com/users/breyed/gists{/gist_id}","starred_url":"https://api.github.com/users/breyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breyed/subscriptions","organizations_url":"https://api.github.com/users/breyed/orgs","repos_url":"https://api.github.com/users/breyed/repos","events_url":"https://api.github.com/users/breyed/events{/privacy}","received_events_url":"https://api.github.com/users/breyed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-05T14:59:10Z","updated_at":"2018-12-05T14:59:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The page initially provides the advice that a Background-Safe Task is \"a great candidate\" for \"sending a new user's registration information to your server\". Then it goes on to say how it's not so great and that you should use `NSURLSession` instead. Completely missing is the relationship to `HttpClient`, which can be configured to use `NSURLSession` with the advantage of being cross-platform.\r\n\r\nIt seems the advice should be improved in a couple of ways:\r\n* Drop advice on using Background-Safe Task for networking altogether. It would still be good advice for iOS 6, but that iOS version is long gone (iPhone 3GS era).\r\n* Make the focus of the advice on when to use `HttpClient` versus `NSURLSession` and the implications of each for background networking.\r\n\r\n\r\n---\r\n#### Document Details\r\n\r\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\r\n\r\n* ID: 0b70a30d-a0f7-e672-ae0b-a01ef87322b3\r\n* Version Independent ID: fbb0666a-2fba-5817-3e5d-446a24f5824b\r\n* Content: [iOS Backgrounding with Tasks - Xamarin](https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/backgrounding/ios-backgrounding-techniques/ios-backgrounding-with-tasks)\r\n* Content Source: [docs/ios/app-fundamentals/backgrounding/ios-backgrounding-techniques/ios-backgrounding-with-tasks.md](https://github.com/MicrosoftDocs/xamarin-docs/blob/live/docs/ios/app-fundamentals/backgrounding/ios-backgrounding-techniques/ios-backgrounding-with-tasks.md)\r\n* Product: **xamarin**\r\n* GitHub Login: @lobrien\r\n* Microsoft Alias: **laobri**"}}
{"actor":{"display_login":"breyed"}}