Question by
Tanoshimi2000 · Mar 29 at 02:51 PM ·
androidnetworking
Android access to web based API? System.Net or UnityEngine.Networking?
Ok, so I have a DB holding my workouts, and I want to access it from my phone. I built an Android App using System.Net and System.IO to retrieve JSON and put it into a serialized object. Works great on the PC, but when I put it on the phone it doesn't retrieve the data.
Started working on a version using UnityEngine.Networking, but have to rewrite my code to handle the async read, so I haven't tested it on the android device yet.
1) Does System.Net work on Android Phones in Unity? Is it most likely a permissions thing, or does it flat out not work? 2) If I can't use System.Net, would UnityEngine.Networking do the trick? Or is there another protocol that can have an Android app read JSON from a web API?
Comment