Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7173899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:55:16+00:00 2026-05-28T15:55:16+00:00

I am using ASIHTTPRequest. I need to know how to do the following events

  • 0

I am using ASIHTTPRequest. I need to know how to do the following events using it;

The following are the way i should be checking for the availability of the internet, but in which event should i add it to address the following issues;

self.remoteHostStatus           = [[Reachability sharedReachability] remoteHostStatus];
self.internetConnectionStatus   = [[Reachability sharedReachability] internetConnectionStatus];
self.localWiFiConnectionStatus  = [[Reachability sharedReachability] localWiFiConnectionStatus];

1.) Applications like foursquare pops out an alert as soon as the internet is lost ? How is this done, and in what event should i code this ? (The user might be performing a task, and suddenly the wifi goes off, then i should pop up a warning, saying no wifi available)

2.) As soon as the internet/wifi is back i need to refresh and update the data. How is this done? (it should be listening continuously, and once the internet is back it should update that view)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:55:17+00:00Added an answer on May 28, 2026 at 3:55 pm

    There is a notification posted by Reachability called kReachabilityChangedNotification.

    You can enforce the generation of that notification by using Reachability’s

    - (BOOL)startNotifier;
    - (void)stopNotifier;
    

    First register for that notification – for example in viewDidLoad of a UIViewController:

    [[NSNotificationCenter defaultCenter] addObserver:self 
                                             selector:@selector(reachabilityChangedNotificationSent:) 
                                                 name:kReachabilityChangedNotification 
                                               object:nil];
    

    Add the following method – for example to your UIViewController implementation.

    - (void)reachabilityChangedNotificationSent:(NSNotification *)notification
    {
        NSLog(@"reachability changed: %@", notification.userInfo);
    }
    

    Now simply invoke startNotifier – for example in viewDidLoad again and you should be informed whenever any changes happen.

    [[Reachability sharedReachability] startNotifier];
    

    Do not forget to remove yourself from that notification and to invoke stopNotifier when done. Sticking to my example would mean that you should add this to your viewDidUnload implementation.

    [[Reachability sharedReachability] stopNotifier];
    [[NSNotificationCenter defaultCenter] removeObserver:self
                                                    name:kReachabilityChangedNotification 
                                                  object:nil];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a UITableView which loads data from a server. I need to use
Honestly, I don't know a lot about PHP but I think what I need
I'm using ASIHTTPRequest to download a list of 30 files but 2 or 3
I'm using ASIHTTPRequest to download data from the internet. If I lose my internet
We are currently using ASIHTTPRequest in our iPad application, which is a PDF viewer.
I am using ASIHTTPRequest 1.6.2 lib for all http transactions in IPhone. But i
I am pulling my hair out on this one... I am using the ASIHTTPRequest
Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.