Search code examples
iosreachability

Does Reachability need to be included when using Twitter/FB sharing sheets?


Does Apple's Reachability class need to be included in an app that allows sharing via the built-in Facebook and Twitter sharing sheets? That's the only area of my app that would require any kind of network call, but since it's a system level function and my app isn't directly talking to Twitter/Facebook, I thought I might not need to include it.

On a related note, if my app sends a user to Safari for a help page, do I need to include Reachability for that? My app wouldn't be making any network calls there, either.


Solution

  • As far as I know, reachability is used to check the availabilty of internet connection. This is usually useful if you want to make sure that the device currently have internet connection before attempting any network-related operation. However, this is not obligatory.