title: API calls made in Ionic 4 app not working on Android device
body: <p>I am able to run my ionic app on my laptop by using the <code>ionic lab</code> command.</p>
  
  <p>The app makes calls to the IMDB api, &amp; displays data retrieved from it.</p>
  
  <p>Now, I am trying to run the app on an android device.
  by using the following command: <code>ionic cordova run android --device</code>.</p>
  
  <p>The app appears on my phone, but when I search for IMDB data, no results are appearing.</p>
  
  <p>Below is the service I am using to make calls to the API:</p>
  
  <pre><code>export class MovieService {
  
    url = 'http://www.omdbapi.com/';
    apiKey = 'myKey';
  
    constructor(private http: HttpClient) { }
  
    searchData(title: string, type: SearchType): Observable&lt;any&gt; {
      return this.http.get(`${this.url}?s=${encodeURI(title)}&amp;type=${type}&amp;apikey=${this.apiKey}`)
        .pipe(
          map(results =&gt; {
            console.log('RAW', results);
            return results['Search'];
          })
        );
    }
  
    getDetails(id): Observable&lt;any&gt; {
      return this.http.get(`${this.url}?i=${id}&amp;plot=full&amp;apikey=${this.apiKey}`);
    }
  }
  </code></pre>
  
  <p>Can someone please tell me why the app is working on my laptop, but when I try to use it on my phone it isn't working as expected?</p>