I must call an api on a server, but it haven't https protocol, I saw this post :
https://stackoverflow.com/questions/57433362/api-calls-made-in-ionic-4-app-not-working-on-android-device
according to that http request in android are restricted access. How can I do without pass my server in Https ?
public showAccepterPart() {
if (this.numContact !== '') {
const url = 'server_address/app/interv-app/API-SERVER/AccepterPart.php';
const dataPost = JSON.stringify({
numContact : this.numContact,
});
this.http.post(url, dataPost).map(res => res.json()).subscribe(data => {
this.AccepterPart = data;
});
this.nativeStorage.setItem(this.key7, JSON.stringify(this.AccepterPart));
console.log('numContact : ' + this.numContact);
} else {
console.log('Pas de numéro');
}
}