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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:18:20+00:00 2026-06-14T07:18:20+00:00

Hi I have read some posts and see that I can use reachability sample

  • 0

Hi I have read some posts and see that I can use “reachability” sample from Apple to check if the current device is run on Wi-Fi or cellular and decide if a connection can be fired. However I have a lots of webviews and HTTP calls in my app on different classes, so I am afraid I have to call the check in every single method which will start a connection. I would like to ask if there is any way to check the status of the network and disallow all traffic on cellular? Thanks a lot.

  • 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-14T07:18:20+00:00Added an answer on June 14, 2026 at 7:18 am

    You are looking for the ReachableViaWiFi network status, which is broadcast via NSNotification. You can setup that up in your code like this:

    @property (nonatomic, assign) NetworkStatus currentNetStatus;
    

    …

    - (void) startListeningForWifi{
                Reachability* hostReach = [Reachability reachabilityWithHostName:@"hostName"];
                [hostReach startNotifier];
    
                // reachability set up
                // Observe the kNetworkReachabilityChangedNotification. When that notification is posted, the
                // method "reachabilityChanged" will be called. 
                [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reachabilityChanged:) name: kReachabilityChangedNotification object: nil];
    }
    
    - (void)reachabilityChanged: (NSNotification* )note{
        Reachability *curReach = [note object];
        self.currentNetStatus = [curReach currentReachabilityStatus];
    }
    

    Then it’s easy to check the currentNetStatus before you make a network call. If that is not equal to ReachableViaWiFi then you are not on wifi.

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

Sidebar

Related Questions

Okay I'm looking for some assistance I have researched and read posts that pertain
I have read some posts having the same problem. I tried to adapt their
I have read some posts on here about not mixing parameters when passing into
I have read some posts about this topic and the answers are comet, reverse
I have already read some posts, but no one helped me with my problem.
I have read probably all posts and documentation but I still can't solve this
Through several threads I can see that the use of the MVC antiforgery token
I have read some of the questions and answers here, but it none match
I have read some different responses for this same question, so I dont know
I have read some of the basic Google Apps Script documentation/tutorials. I have not

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.