Wait a minute..
Went to http docs to clarify, and tried to execute one example on console:
const doGet = async () => {
try {
const options = {
method: 'GET',
url: 'https://www.XXXX.com/dmxConnect/api/test/testmobile6/queryvalue.php',
headers: { 'Content-Type': 'application/json' }
};
const response = await Capacitor.Plugins.Http.request(options);
console.log(response.status);
console.log(response.data);
} catch (error) {
console.error(error);
}
};
doGet();
and found this
File: - Line 13 - Msg: Error: Error: NullPointerException
That takes me to:
Ionic Capacitor Community Http Native - Not working in Android device or Emulator:
That plugin has been revamped to official capacitor core plugin: CapacitorHttp
So updated by hand to latest (6.1.0)
Don't know if this was solved: New capacitor release, dependency issue
Now, all the request are not on console.
I can see it on the network tab.
I think I broke everything