Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity 2019.2.0 Internet reachability Api is not working in android mobile

Discussion in 'Getting Started' started by sankar_23, Aug 8, 2019.

  1. sankar_23

    sankar_23

    Joined:
    Jan 7, 2017
    Posts:
    1
    if(Application.internetReachability == NetworkReachability.NotReachable) is not working in android mobiles,it is working only in editor,We need to check internet connection for mobile application.Could anyone help me .
     
    vincismurf and KB73 like this.
  2. KB73

    KB73

    Joined:
    Feb 7, 2013
    Posts:
    234
    Same here
     
  3. KB73

    KB73

    Joined:
    Feb 7, 2013
    Posts:
    234
    It works for us with iOS as well, just android not jiving.
     
  4. imaewyn

    imaewyn

    Joined:
    Apr 23, 2016
    Posts:
    211
  5. vincismurf

    vincismurf

    Joined:
    Feb 28, 2013
    Posts:
    200
  6. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    One of you should file a bug report with an example project.
     
  7. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    297
  8. gnigam

    gnigam

    Joined:
    Jul 20, 2017
    Posts:
    1
  9. robertsze

    robertsze

    Joined:
    Jul 8, 2013
    Posts:
    83
    same here
     
    kanedaoscube_unity likes this.
  10. eximan

    eximan

    Joined:
    Apr 30, 2013
    Posts:
    7
    We have the same problem. Has anyone found a solution? How to test internet connection?
     
  11. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    The previously linked bug report was closed because it wasn't reproducible with the provided project and steps, and the reporter stopped responding a month ago. If it is really a bug, someone needs to provide the correct information to Unity QA in order to reproduce it or it will certainly not get fixed.
     
  12. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    I reopened the bug yesterday with a comment, it shouldn't really require a user repro scenario as it should be easy to test locally.
     
    vincismurf and Joe-Censored like this.
  13. robertsze

    robertsze

    Joined:
    Jul 8, 2013
    Posts:
    83
  14. mvaz_p

    mvaz_p

    Joined:
    Aug 22, 2018
    Posts:
    80
    Just updated to 2019.2 and it's broken.
    Always returning false on Samsung G570M, was working perfectly on 2019.1.
     
  15. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    429
    Hi,

    internet reachability is broken when building for MacOs standalone on 2019.1.0f2...

    EDIT: ok, so turns out that not only it's not meant to verify that internet is accessible, which in itself is sooo misleading, but it's not even giving the same results if you are in editor or in builds, so in editor, it properly ( or intuitively) says that internet is not reachable when wifi is disabled, but when in builds, it says it has carrier reachability..

    so, this api is very confusing/broken/useless to say the least... at least make it in big red ballon letters that it's not meant to verify that internet is accessible.

    Bye,

    Jean
     
    Last edited: Sep 30, 2019
  16. mentalup

    mentalup

    Joined:
    Dec 14, 2017
    Posts:
    7
    We have removed the control for Android and added a Ping to Amazon EC2 server, I think Ping is also not working on this devices because with the new version still our users report this bug, its an important feature for a platform because everything is made via internet and many applications need to check internet connection before connect to somewhere, Unity should focus more on this bug....
     
  17. justtime

    justtime

    Joined:
    Oct 6, 2013
    Posts:
    424
    Same for 2019.2.8f and Android
     
  18. vincismurf

    vincismurf

    Joined:
    Feb 28, 2013
    Posts:
    200