Thank you @joshmorony for your suggestions.
Your tutorial is very interesting.
It can be used together with this one: Chrome DevTools - Chrome for Developers
to prepare the debug phase.
So:
- launching the command: ionic cordova run android
- using the app on the phone
- looking at the Chrome console on my pc
I’ve seen this error:
polyfills.js:5601 OPTIONS http://cccccccc/auth/login net::ERR_CLEARTEXT_NOT_PERMITTED
Googling a bit I’ve found these posts:
So I’ve added to the config.xml file:
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:usesCleartextTraffic="true" />
</edit-config>
and I’ve modified the top of the same file in this way:
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
And now it works.
The next step will be to move web services to HTTPS.
Will I have the same problem on ios?
I’ll let you know.
cld