Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49308

Calling Rest API from android device

$
0
0

@vksin wrote:

Hi,

I am trying to call a rest api from ionic code. Rest api is also developed in my local system. IP address of my windows system is 192.168.67.1. The get request api has url is:
http://192.168.67.1:8088/check-price/code-001
Now the problem:
I am able call the rest api when i build/run the app using command
ionic lab (as this opens up the app on browser)
this also work when ionic code runs on emulator by command.
ionic cordova run android --e78ab88d.

This FAILS when i run the code on actual android device by using command.
ionic cordova run android --device

Need help on this.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>