title: WWW.LoadFromCacheOrDownload is not working in augmented reality app on android phone using unity
body: <p>I am trying to build an augmented reality app and in that app i want some prefabs to load dynamically. So that with some 3d model prefabs on unity store i created myasset.unity3d . I am using WWW.LoadFromCacheOrDownload to download that unity3d file and using it.</p>
  
  <p>When i am debugging in my laptop the file is downloading and i am using it as i want but when i add build in and try it on android phone download is not happening.</p>
  
  <p>The code i am using to download is</p>
  
  <pre><code>IEnumerator DownloadAndCache() {
           while (!Caching.ready)
               yield return null;
  
           string bundleURL = "http://s3-ap-southeast-1.amazonaws.com/cf-export/sofa.unity3d";
  
           www = WWW.LoadFromCacheOrDownload (bundleURL, 1);
           yield return www;
  
           Debug.Log (www.assetBundle);
  
           AssetBundle bundle = www.assetBundle;
   }
  </code></pre>
  
  <p>So please help me .</p>
  
  <p>i also tried other way of doing it but still i did not succeed</p>
  
  <pre><code>IEnumerator Start () {
      WWW www = WWW.LoadFromCacheOrDownload (BundleURL, 1);
      yield return www;
      AssetBundle bundle = www.assetBundle;
      AssetBundleRequest request = bundle.LoadAssetAsync (AssetName, typeof(GameObject));
      yield return request;
      GameObject obj = request.asset as GameObject;
      Instantiate (obj);
      bundle.Unload(false);
      www.Dispose();
  }
  </code></pre>
  
  <p>The above two methods are working in when testing in unity IDE but if i build using android and install it in android device its not working. I gave internet access to app while building</p>
  
  <p>I printed the error using a text in mobile and please check the screen shot attached below
  <a href="https://i.stack.imgur.com/esOaW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/esOaW.jpg" alt="enter image description here"></a></p>
  
  <p>the first error text is www (variable for downloading) and second is www.error ( actual error). i did not get what that error meant. So please help me </p>