title: how to connect to a web service in a real Android device
body: <p>May I ask if how can I connect to my web service when the ionic application is runned on a real Android device using 'ionic build android'?</p>
  
  <p>I've searched many tutorials about handling CORS in Ionic. I got this tutorial in the Internet (<a href="http://blog.ionic.io/handling-cors-issues-in-ionic/" rel="nofollow noreferrer">http://blog.ionic.io/handling-cors-issues-in-ionic/</a>) and followed the steps indicated there. I'm using <code>ionic run android -l -c</code> and Yes! I can now connect to my web service. The problem is that I am going to deploy my application using <code>ionic build android</code> and install it on one or many Android devices. This is to test the simultaneous syncing of data from a network. Unfortunately, the application doesn't display any data from the web service.</p>
  
  <p>BTW, I'm using the IP address of my computer to access my web service in the phone (ex. 121.68.90.134) and the web service is runned under XAMPP v3.2.2 with PHP version 5.6.23 (my computer serves as the temp. server).</p>
  
  <p>Sample URL of the web service: C:/xampp/htdocs/simmlase-WServ/</p>
  
  <p>Here is my app.js code snippets</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var app = angular.module('starter', ['ionic']);
  
  app.constant('Api', {
    url: 'http://192.168.8.100:8100/api'
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks in advance for the help. I am confused about this matter because it is needed in my final defense.</p>