Offline Android game
Hello,
I would like to make my game to work offline, so I tested it some months ago and it worked, but now, it didn't work. I get the error
java.net.UnknownHostException: Unable to resolve host "config.uca.cloud.unity3d.com": No address associated with hostname
I use Unity Ads and UnityIAP, but if there is no internet connection, I don't initialize ads and I use Analytics.enabled = false;
to disable Analytics (I can't disable Analytics from the editor because I use UnityIAP).
What causes this error and what can I do?
Thank you in advance
Answer by OriginalsByToto · Sep 29, 2018 at 11:47 AM
After contacting the Unity support team, I found that this problem is not really causing the crash.
The purchaser cannot be created if there is no internet connection, so I disabled all IAP functions when there is no network.
Hope it can solve other problems.
Your answer
Follow this Question
Related Questions
Is it possible to load a locally store website on Android? 0 Answers
Help offline progression, works on windows but not on Android. 0 Answers
Can Unity Ads service work without Google play services on Android? 0 Answers
Install 'Android Build Support' Module Offline (Mac) 1 Answer
How to setup offline connection and data exchange between Android Phones 0 Answers