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

  • Home
  • SEARCH
  • 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 6008249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:47:52+00:00 2026-05-23T01:47:52+00:00

Iam currently checking the internet connection when i start the app first time but

  • 0

Iam currently checking the internet connection when i start the app first time but if i close the app and turn on the airplane mode and then run the app back its working or it should check the internet connection if i lose my wifi and it should say your internet connection lost or somthing like that. Any one have proper answer for this?

  • 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-23T01:47:53+00:00Added an answer on May 23, 2026 at 1:47 am

    Use the Reachability API. Here’s some code from the app delegate file of one of my projects.

    // ivars
    Reachability* hostReach;
    Reachability* internetReach;
    Reachability* wifiReach;
    
    - (void) reachabilityChanged: (NSNotification* )note {
    
        Reachability *curReach = (Reachability *)[note object];
    
        if ([curReach currentReachabilityStatus] == NotReachable) {
    
            UIAlertView *alert = [[[UIAlertView alloc] init] autorelease];
            alert.title = @"No network connection?";
            alert.message = @"No network connection.";
            alert.delegate = self;
            [alert addButtonWithTitle:@"OK"];
            [alert show];
    
        } 
    
    }
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
    
        [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reachabilityChanged:) name: kReachabilityChangedNotification object: nil];
    
        hostReach = [[Reachability reachabilityWithHostName: @"www.test.com"] retain];
        [hostReach startNotifier];
    
        internetReach = [[Reachability reachabilityForInternetConnection] retain];
        [internetReach startNotifier];
    
        wifiReach = [[Reachability reachabilityForLocalWiFi] retain];
        [wifiReach startNotifier];
    
        // controller setup
        viewController = [[CFSplashViewController alloc] init];
    
        [window addSubview:viewController.view];
        [window makeKeyAndVisible];
    
        return YES;
    }
    
    // and of course, remember to release all those resources..
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently writing a simple, timer-based mini app in C# that performs an
I am currently checking by doing this, if($user['medicineStudy'] == 1 || $user['thievingStudy'] == 1
I am currently developing an android application and every now and then I am
I am currently developing an android app. I have an activity which calls a
I am currently making a small test program for simple file checking. The program
i am currently using IIS7's Url Re-write module, but the main loophole of using
I am currently trying to install watir on my PC but currently hitting the
So this is a fairly odd problem: I am currently working on an app
I am currently checking if its possible to generate an xml using oracle out
I am currently pulling start times from an XML file and using a date

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.