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 8786669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:41:48+00:00 2026-06-13T21:41:48+00:00

In my project I am using Reachability class provided by Apple. When there is

  • 0

In my project I am using Reachability class provided by Apple. When there is no internet connection, I am displaying an alert message. Everything is working fine, when I test it on the simulator, but when am running it on iPad, the alert message is not shown when there is no internet.

I am running the code on iOS 5.0.

Any help would be appreciated.

EDIT:

-(BOOL)isInternetConnectionPresent{

Reachability *objReachability = [Reachability reachabilityForInternetConnection];    
NetworkStatus internetStatus = [objReachability currentReachabilityStatus];

if(internetStatus != NotReachable)
{
    return YES;
}


   return NO;
}

UPDATE:

Used NSLog to debug. Seems there was some problem with WWAN, even when there was no SIM card. Restarted the iPad & switched OFF & ON the Wi Fi again. Now it works fine. Thanks for the help guys.

  • 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-06-13T21:41:50+00:00Added an answer on June 13, 2026 at 9:41 pm

    You have to check all the NetworkStatus and Cross Check the device Wifi Connection status again

    Example:

    // to check if, wifi connected properly in current device.
    - (BOOL)networkCheck {
    
        Reachability *wifiReach = [Reachability reachabilityForInternetConnection];
        NetworkStatus netStatus = [wifiReach currentReachabilityStatus];
    
        switch (netStatus)
        {
            case NotReachable:
            {
                NSLog(@"NETWORKCHECK: Not Connected");          
                return NO;
                break;
            }
            case ReachableViaWWAN:
            {
                NSLog(@"NETWORKCHECK: Connected Via WWAN");
                return NO;
                break;
            }
            case ReachableViaWiFi:
            {
                NSLog(@"NETWORKCHECK: Connected Via WiFi");
                return YES;
                break;
            } 
        }
        return false;
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Reachability on my project to get the type of connection used, but
I have a project using DynamicJasper to create reports. It works fine so far,
Working on a project using Entity Framework (4.3.1.0). I'm trying to figure out how
I am using Reachability sample code from Apple site. I have added Reachability.h and
So I finished a project using DOM to get data. Everything worked great, and
In my project I'm using Reachability API. I followed the code example which have
there is a project using nhibernate v2.1 and i have been wondering whether v3
The documentation of my project (using Python 3.2) is created with Sphinx (1.1.3) and
In a web project using jsp, I have following requirement Upload a file (say
i have a JavaScript project (using jquery), inside it i draw a canvas by

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.