title: Ionic2 proxies not working with ionic run but working with ionic serve?
body: <p>For my <code>ionic.config.json</code> I have:</p>
  
  <pre><code>{
    "name": "TSICMobile",
    "app_id": "6e4680fa",
    "typescript": true,
    "v2": true,
    "proxies": [
      {
        "path": "/api",
        "proxyUrl": "http://192.168.0.105:8081/api"
      }
    ]
  }
  </code></pre>
  
  <p>In my provider (<code>user-data.ts</code>, based on Ionic2 conference app) I have for example:</p>
  
  <pre><code>login(credentials) {
      return new Promise((resolve, reject) =&gt; {
          this.http.post(
              '/api/Login',
              JSON.stringify(credentials),
              { headers: this.contentHeader }
          ).subscribe(res =&gt; {
              console.log('api/Login return');
              this.data = res.json();
              if (this.data.authenticated === true) {
                  this.storage.set('TSIC_USER_PROFILE', JSON.stringify(this.data.tsiC_USER_PROFILE));
                  this.storage.set('TSIC_USER_ROLES', JSON.stringify(this.data.listRoles));
                  this.storage.set('tsic_id_token', this.data.token);
                  this.events.publish('user:login');
                  resolve(true);
              } else {
                  reject('not authenticated');
              }
          }, error =&gt; {
              console.log('api/Login failed');
              reject(error);
          });
      });
  }
  </code></pre>
  
  <p>when running:</p>
  
  <pre><code>ionic serve --lab -c
  </code></pre>
  
  <p>the proxy works perfectly and posts to <a href="http://192.168.0.105:8081/api/Login" rel="noreferrer">http://192.168.0.105:8081/api/Login</a></p>
  
  <p>when running</p>
  
  <pre><code>ionic run android -c
  </code></pre>
  
  <p>the post url is <code>file://api/Login</code>, and obviously fails.  </p>
  
  <p>Need assistance in understanding why (seemingly), the proxy is not in effect when running on device, and what I may be doing wrong or not understanding.</p>