0

I am using Reachability Code to check the network status of ip but currently i am using NSNotification Center. But i don't want to check like that. I need to check the network status only when i try to download something from my host.

Currently the internet connection is able to check properly but not able to check host reachability. How to do this?

Vignesh Babu
  • 670
  • 13
  • 30

2 Answers2

0

Reachability Guide for iOS 4

reachability should be added whereever u r going to access the network.otherwise apple may reject ur app.if u want to test particularly ur host then use call back connection failed with error callback to display some alertview with error or make ur own message.

Community
  • 1
  • 1
  • 2
    Not much use just giving him a link without any comment. Particularly as it isn't reachability he's concerned with, but whether or a *particularly* site can be reached. – Abizern Jun 20 '11 at 09:23
0

How about something like this:

  1. Use Reachability to see if connectivity is available
  2. Try to download a file from your site if there is a network
  3. If you can't download the file, you'll get an error - deal with it gracefully.
Abizern
  • 146,289
  • 39
  • 203
  • 257