I am building my first app using ionic framework. I run into the following issue. I have a nodejs rest api hosted in the cloud. When I run my app using ionic serve and I fetch some data it does work. But when I do it from my device (using ionic run android) it doesnt work. I've read something about cordova-plugin-whitelist, but I have it and still doesnt work.
ionic.project
{
"name": "myApp",
"app_id": "",
"proxies": [
{
"path": "/contacts",
"proxyUrl": "https://myapp.herokuapp.com/contacts"
}
]
}
In config.xml I have both of this tags:
<access origin="*"/>
<allow-navigation href="*" />
I forgot to mention that I tried accessing to this other api https://api.chucknorris.io/jokes/random and it has no problems with it. Maybe somethings wrong with my nodejs REST service?
ionic run android