{"action":"closed","issue":{"url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/104","labels_url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/104/comments","events_url":"https://api.github.com/repos/jamesmontemagno/Xamarin.Plugins/issues/104/events","html_url":"https://github.com/jamesmontemagno/Xamarin.Plugins/issues/104","id":104745783,"number":104,"title":"Connectivity Plugin not Updating when connection is restored","user":{"login":"OnTheFenceDevelopment","id":1759701,"avatar_url":"https://avatars.githubusercontent.com/u/1759701?v=3","gravatar_id":"","url":"https://api.github.com/users/OnTheFenceDevelopment","html_url":"https://github.com/OnTheFenceDevelopment","followers_url":"https://api.github.com/users/OnTheFenceDevelopment/followers","following_url":"https://api.github.com/users/OnTheFenceDevelopment/following{/other_user}","gists_url":"https://api.github.com/users/OnTheFenceDevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheFenceDevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheFenceDevelopment/subscriptions","organizations_url":"https://api.github.com/users/OnTheFenceDevelopment/orgs","repos_url":"https://api.github.com/users/OnTheFenceDevelopment/repos","events_url":"https://api.github.com/users/OnTheFenceDevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheFenceDevelopment/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-03T17:34:04Z","updated_at":"2015-11-19T05:47:23Z","closed_at":"2015-11-19T05:47:23Z","body":"I've used the plugin in an Android application and it works fine but I'm currently working on an iOS app and am having some odd behaviour.\r\n\r\nIf I run the application with the device in Flight Mode or with the Wifi turned off (there is no SIM card in this device) then the calls to `IsConnected` correctly return false.\r\nIf, with the application still running, I disable Flight Mode or turn Wifi back on and wait for a connection to be restored the calls to `IsConnected` still returns false.\r\n\r\nIn both of the above scenarios the call to `IsRemoteReachable` also return false.\r\n\r\nThe method I have is below, this is held in a `static` class:\r\n\r\n```csharp\r\npublic async static Task<bool> CanConnectToTarget (string targetUrl)\r\n{\r\n\tvar connected = false;\r\n\tvar reachable = false;\r\n\r\n\tconnected = Connectivity.Plugin.CrossConnectivity.Current.IsConnected;\r\n\treachable = await Connectivity.Plugin.CrossConnectivity.Current.IsRemoteReachable (new Uri(targetUrl).Authority);\r\n\r\n\treturn connected && reachable;\r\n}\r\n```\r\n\r\nIt's called from a ViewController as below;\r\n\r\n```csharp\r\nvar canConnect = await DocumentCache.CanConnectToTarget(_documentUri);\r\nif (canConnect == false) {\r\n   // Code in here to display UIAlertView\r\n}\r\n```\r\n\r\nI'm running the latest version of the plugin (1.0.4) and everything else is fully up to date at the time of writing.\r\n"}}