I am using UnityAds on an Android App through Unity.
UnityAds will initialise even when there's no internet connection. Shouldn't it check whether there's internet before initialising? An ad will try playing and it causes the app to pause on a dark screen and requires a complete restart to get rid of it.
I have also tried other methods of checking for an internet connection before initialising, but none of the methods have worked. I've tried pinging www.google.com; pinging Google's public DNS server, 8.8.8.8; using iPhoneInternetReachability and internetReachability; and other methods from forums.
Is there something I'm doing wrong with UnityAds that is preventing it from checking for internet, or is that just how it works. If so, what's an easy, quick method for checking for any kind of internet connection on an Android device in c#?
Thanks! :)
( PS. This is my first time using Unity Answers, so if I've done something wrong please try and contain your frustration :) )
↧