Currently I can not find any straight forward solution to check if the network is available when pressing the login button. I would like to show a snack to inform the user about the connectivity issue.
This would prevent an unnecessary network request, if the user has the twitter app installed the login screen will appear with accept decline but none of the options would work, on the other hand if the user does not have the app the screen will flash ( opens a WebView i suppose ). This is bad UX …