- Home /
Application.internetReachability is leaked?
Hi there,
This problem was reported on other thread but it was abandoned without an answer the link is HERE
I have an empty project with this script only:
using UnityEngine;
using System.Collections;
public class NetworkTest : MonoBehaviour
{
void Update ()
{
NetworkReachability reachabilty = Application.internetReachability;
Debug.Log("Network: "+reachabilty);
}
}
I am developing a game for iOS and on instruments the memory keeps going up, if I comment the Application.internetReachability the memory is stable, is this normal? Is it a leak? Any ideas on how to test for internet connection on iOS without this leak (possible substitutes) ?
Any help is useful!
Thanks in Advance.
Anybody find anything out on this?
Also of note: we're finding this function takes anywhere from 8-30ms to run on an iPhone 4 (timed using Unity's Profiler.BeginSample / EndSample). Yikes.
As no body answer we try using www class as an aproach testing a ping to an internet page every x seconds, we are doing this as an substitute. Either way we haven´t test the time it takes, or if there are bad consecuences about this aproach, still the memory is stable. Hope this is useful.