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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:08:56+00:00 2026-06-12T14:08:56+00:00

Got a weird bug here. This only manifests when the iOS Device is being

  • 0

Got a weird bug here. This only manifests when the iOS Device is being used exclusively on 3G/4G networks. i.e. if over WiFi – no bug and it all works fine.

- ( BOOL ) isInternetAccessAvailable
{
    CFNetDiagnosticRef diag;

    diag = CFNetDiagnosticCreateWithURL ( NULL, ( __bridge  CFURLRef )[NSURL URLWithString:@"www.apple.com"] );

    CFNetDiagnosticStatus status;

    status = CFNetDiagnosticCopyNetworkStatusPassively ( diag, NULL );

    CFRelease ( diag );

    if ( status == kCFNetDiagnosticConnectionUp )
    {
        return YES;
    }
    else
    {
        NSString * title   = @"No Internet Connection";
        NSString * message = @"Please ensure you have an Internet Connection.";

        [self showAlertWithTitle:title andMessage:message];

        return NO;
    }
}

Okay, so I have the above method that gets called before I try and load data into a UIWebView.

As I said – over a WiFi network, this works perfectly.

If WiFi is turned off (or unavailable / not connected) and the device is using a SIM for 3G/4G networks.

the line where is calls:

status = CFNetDiagnosticCopyNetworkStatusPassively ( diag, NULL );

returns a long equivalent to:

kCFNetDiagnosticConnectionDown

So therefore my test fails and I display a warning UIAlertView to the user.

But the network is there! If I change the test line to this:

if ( ( status == kCFNetDiagnosticConnectionUp ) || ( status == kCFNetDiagnosticConnectionDown ) )

It works over 3G/4G and downloads the web page – so the device or network isn’t at fault.

But the call to CFNetDiagnosticCopyNetworkStatusPassively is failing only on 3G/4G.

Any ideas?

This has just been found in an app I recently expedited into the App Store to meet advertising and merchandising deadlines and if there is a fault in my code – I need this fixed and resubmitted asap.

  • 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-12T14:08:57+00:00Added an answer on June 12, 2026 at 2:08 pm

    Confirmed bug by Apple.

    Dupe if you want: Bug ID# 12443370

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, got a weird bug going on here and so far google has failed
Got a weird bug best shown by this page http://www.zoecormier.com/freelance/ Scroll down to the
I have got this super weird bug in my current project. To understand what
I've got this weird bug happening. I'm basically just adding a few minutes to
I have a very weird bug here, this is the scenario; -I click on
I hope someone can help me with this weird bug. I've got a popover
I've got a weird bug occurring in a compact database on a Vista deployment
I got this weird error when I wanted to validate my in-memory xml Schema,
I've got a weird problem: both my if and else statements are executing. Here's
I've got a weird problem where if i do something like this in a

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.