Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Detect if device is connected to Wifi

Discussion in 'iOS and tvOS' started by ConfusedExpert, Jun 29, 2016.

  1. ConfusedExpert

    ConfusedExpert

    Joined:
    Dec 25, 2014
    Posts:
    8
    Hello,

    I am developing an app for mobile and need to be able to tell if the device is connected to the internet via WIFI or via 3G. I have already managed to do so for the android version, using a pulgin that exposes native calls, but I can't seem to find any solution for iOS.
    Does somebody have any suggestions or plugins that can help me solve this issue?

    Thanks in advance,
    ConfusedExpert
     
  2. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
  3. nazgul

    nazgul

    Joined:
    Oct 24, 2011
    Posts:
    10
    Is it really cost 15$??? They just use WWW and grab an answer from any website.
     
  4. ConfusedExpert

    ConfusedExpert

    Joined:
    Dec 25, 2014
    Posts:
    8
    I am able to tell if the device is connected to the internet by pinging via the WWW class.
    The thing I am looking for, is the ability to tell if the device is connected via Wifi or not.
    something like this:

    bool isDeviceWifiConnected();
     
  5. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,272