Wednesday, March 11, 2020

IONIC 4 app not connecting to API running in Android device

IONIC 4 app not connecting to API running in Android device


Go to \resources\android\xml\

Open network_security_config.xml

Include domain below

<domain includeSubdomains="true">Your API IP or domain </domain>

Empty List Of Devices Attached via USB Debugging on Windows

adb devices

command not returning any devices

try below things

1) install USB driver for your devices
2) Enable USB debugging in your android phone
3) Reconnect the phone and run adb devices again