Hello. I’m struggling with the problem of downloading .json files on Android. Everything works fine on a PC, but nothing happens on Android. No errors, I even installed the console to view what’s going on, but everything seems fine. I use this script:
It is a project that downloads a timetable. With .json files, I can easily modify the plan every week for the whole classmates. I have already tried to add arguments to the manifest. I changed Install Location to “Prefer External”, Write Permission to “External (SDCard)” and still nothing … I have been working on it for 3 days and nothing works. I also tried to change the download path from “Application.persistentDataPath” to the android “storage / emulated / 0 /” The only thing that downloads is empty files without any data. Please help me because I’m already damn
But, also note that UnityWebRequest is replacing WWW, so you may want to consider swapping. However, if your files are being created, but they are empty, it’s possible you have an error that is being returned.
The culprit was the unity version. I used “Unity 2019.1.10f1”. When i compiled the application on the version “Unity 2019.2.9f1” and everything works! Thank you so much, if it wasn’t for your ideas I would probably give up.