Search Unity

internetReachability is NotReachable on version 2019.2.0f1, but works right in version 2019.1.13f1

Discussion in 'Scripting' started by mmln387, Aug 7, 2019.

?

Is it 2019.2.0f1 issue?

  1. Yes. It is the issue.

    100.0%
  2. No. You must do the next...

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. mmln387

    mmln387

    Joined:
    Jan 28, 2018
    Posts:
    3
    I tested the example from <https://docs.unity3d.com/ScriptReference/NetworkReachability.ReachableViaLocalAreaNetwork.html> in Unity version 2019.2.0f1 and in Unity version 2019.1.13f1. I made two projects, one for every version.
    All works fine in Editor. Then I deployed both applications to Samsung Galaxy S7(model:SM_G930F).
    The calling <Application.internetReachability> is always NotReachable for version 2019.2.0f1, but it works right for version 2019.1.13f1.
    Look debug log below for version 2019.2.0f1.
    08-07 22:01:57.842 20886 21219 I Unity : cnt=0 Start : Empty String
    08-07 22:01:57.842 20886 21219 I Unity :
    08-07 22:01:57.842 20886 21219 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 22:01:57.842 20886 21219 I Unity :
    08-07 22:01:57.854 20886 21219 I Unity : cnt=0 Name=TestNetWork20 Internet : Empty String
    08-07 22:01:57.854 20886 21219 I Unity :
    08-07 22:01:57.854 20886 21219 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 22:01:57.854 20886 21219 I Unity :
    08-07 22:01:57.929 20886 21219 I Unity : cnt=1 Name=TestNetWork20 Internet : Not Reachable.
    08-07 22:01:57.929 20886 21219 I Unity :
    08-07 22:01:57.929 20886 21219 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 22:01:57.929 20886 21219 I Unity :
    08-07 22:01:57.930 20886 21219 I Unity : cnt=2 Name=TestNetWork20 Internet : Not Reachable.
    08-07 22:01:57.930 20886 21219 I Unity :
    08-07 22:01:57.930 20886 21219 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 22:01:57.930 20886 21219 I Unity :
    08-07 22:01:57.936 20886 21219 I Unity : cnt=3 Name=TestNetWork20 Internet : Not Reachable.
    08-07 22:01:57.936 20886 21219 I Unity :
    08-07 22:01:57.936 20886 21219 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 22:01:57.936 20886 21219 I Unity :
    08-07 22:01:57.947 20886 21219 I Unity : cnt=4 Name=TestNetWork20 Internet : Not Reachable.
    08-07 22:01:57.947 20886 21219 I Unity :
    08-07 22:01:57.947 20886 21219 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 22:01:57.947 20886 21219 I Unity :
    08-07 22:01:57.962 20886 21219 I Unity : cnt=5 Name=TestNetWork20 Internet : Not Reachable.
    08-07 22:01:57.962 20886 21219 I Unity :
    08-07 22:01:57.962 20886 21219 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 22:01:57.962 20886 21219 I Unity :
    ......
    08-07 23:13:47.961 8652 10134 I Unity : cnt=9996 Name=TestNetWork20 Internet : Not Reachable.
    08-07 23:13:47.961 8652 10134 I Unity :
    08-07 23:13:47.961 8652 10134 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 23:13:47.961 8652 10134 I Unity :
    08-07 23:13:47.977 8652 10134 I Unity : cnt=9997 Name=TestNetWork20 Internet : Not Reachable.
    08-07 23:13:47.977 8652 10134 I Unity :
    08-07 23:13:47.977 8652 10134 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 23:13:47.977 8652 10134 I Unity :
    08-07 23:13:47.988 8652 10134 I Unity : cnt=9998 Name=TestNetWork20 Internet : Not Reachable.
    08-07 23:13:47.988 8652 10134 I Unity :
    08-07 23:13:47.988 8652 10134 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 23:13:47.988 8652 10134 I Unity :
    08-07 23:13:48.005 8652 10134 I Unity : cnt=9999 Name=TestNetWork20 Internet : Not Reachable.
    08-07 23:13:48.005 8652 10134 I Unity :
    08-07 23:13:48.005 8652 10134 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 23:13:48.005 8652 10134 I Unity :
    08-07 23:13:48.022 8652 10134 I Unity : cnt=10000 Name=TestNetWork20 Application.Quit Internet : Not Reachable.
    08-07 23:13:48.022 8652 10134 I Unity :
    08-07 23:13:48.022 8652 10134 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    08-07 23:13:48.022 8652 10134 I Unity :
    08-07 23:13:48.024 8652 10134 I Unity : cnt=10000 Name=TestNetWork20 Internet : Not Reachable.
    08-07 23:13:48.024 8652 10134 I Unity :


    I made 10000 calls of <Application.internetReachability> in version 2019.2.0f1. Result is always = NotReachable. But in version 2019.1.13f1 result always is <Name=TestNetWork13 Internet : Reachable via Local Area Network.>

    Is it 2019.2.0f1 issue?
     
    Last edited: Aug 7, 2019
    sathya likes this.
  2. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    297
    Up. Same issue
     
  3. mmln387

    mmln387

    Joined:
    Jan 28, 2018
    Posts:
    3
    sathya likes this.
  4. sathya

    sathya

    Joined:
    Jul 30, 2012
    Posts:
    297
    @mmln387 Hi did Andrey Mamylin respond to you regarding the issue?
     
  5. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    374
    Had the same issue
     
  6. robertsze

    robertsze

    Joined:
    Jul 8, 2013
    Posts:
    83