{"action":"reopened","issue":{"url":"https://api.github.com/repos/status-im/status-react/issues/3280","repository_url":"https://api.github.com/repos/status-im/status-react","labels_url":"https://api.github.com/repos/status-im/status-react/issues/3280/labels{/name}","comments_url":"https://api.github.com/repos/status-im/status-react/issues/3280/comments","events_url":"https://api.github.com/repos/status-im/status-react/issues/3280/events","html_url":"https://github.com/status-im/status-react/issues/3280","id":296007200,"number":3280,"title":"Update status-go on connection state changes","user":{"login":"divan","id":880202,"avatar_url":"https://avatars2.githubusercontent.com/u/880202?v=4","gravatar_id":"","url":"https://api.github.com/users/divan","html_url":"https://github.com/divan","followers_url":"https://api.github.com/users/divan/followers","following_url":"https://api.github.com/users/divan/following{/other_user}","gists_url":"https://api.github.com/users/divan/gists{/gist_id}","starred_url":"https://api.github.com/users/divan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divan/subscriptions","organizations_url":"https://api.github.com/users/divan/orgs","repos_url":"https://api.github.com/users/divan/repos","events_url":"https://api.github.com/users/divan/events{/privacy}","received_events_url":"https://api.github.com/users/divan/received_events","type":"User","site_admin":false},"labels":[{"id":523025415,"url":"https://api.github.com/repos/status-im/status-react/labels/bounty","name":"bounty","color":"FAFAD2","default":false},{"id":755561122,"url":"https://api.github.com/repos/status-im/status-react/labels/bounty-S","name":"bounty-S","color":"89cbe5","default":false}],"state":"open","locked":false,"assignee":{"login":"rasom","id":2364994,"avatar_url":"https://avatars2.githubusercontent.com/u/2364994?v=4","gravatar_id":"","url":"https://api.github.com/users/rasom","html_url":"https://github.com/rasom","followers_url":"https://api.github.com/users/rasom/followers","following_url":"https://api.github.com/users/rasom/following{/other_user}","gists_url":"https://api.github.com/users/rasom/gists{/gist_id}","starred_url":"https://api.github.com/users/rasom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasom/subscriptions","organizations_url":"https://api.github.com/users/rasom/orgs","repos_url":"https://api.github.com/users/rasom/repos","events_url":"https://api.github.com/users/rasom/events{/privacy}","received_events_url":"https://api.github.com/users/rasom/received_events","type":"User","site_admin":false},"assignees":[{"login":"rasom","id":2364994,"avatar_url":"https://avatars2.githubusercontent.com/u/2364994?v=4","gravatar_id":"","url":"https://api.github.com/users/rasom","html_url":"https://github.com/rasom","followers_url":"https://api.github.com/users/rasom/followers","following_url":"https://api.github.com/users/rasom/following{/other_user}","gists_url":"https://api.github.com/users/rasom/gists{/gist_id}","starred_url":"https://api.github.com/users/rasom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasom/subscriptions","organizations_url":"https://api.github.com/users/rasom/orgs","repos_url":"https://api.github.com/users/rasom/repos","events_url":"https://api.github.com/users/rasom/events{/privacy}","received_events_url":"https://api.github.com/users/rasom/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-02-09T20:48:57Z","updated_at":"2018-03-03T17:01:37Z","closed_at":null,"author_association":"MEMBER","body":"### User Story\r\n\r\nAs a status-go :), I want to know when device network goes offline, switches networks, using expensive connection or on the poor quality network. I want to be notified by calling my `ConnectionChange()` API method.\r\n\r\n### Description\r\n\r\n*Type*: Feature\r\n*Summary*: Implement event listener as described in https://facebook.github.io/react-native/docs/netinfo.html (example doc, feel free to use better/proper docs/approaches) and call `ConnectionChange(type string, expensive bool)` call from `status-go` API (shall be available in nightly build). `type` is mirroring type from RN docs for simplicity.\r\n\r\nThe corresponding PR in status go: https://github.com/status-im/status-go/pull/649\r\n\r\nCurrently, status-go should print network state changes into logs. The more advanced logic for handling different network switch cases will be implemented in the follow-up issues.\r\n"}}
{"actor":{"display_login":"divan"}}