@ioclaudio wrote:
Hi,
I have an Ionic4 app that calls some web services using HttpClient;import { HttpClient } from '@angular/common/http'; ... constructor(private plt: Platform, private httpClient: HttpClient,...) {...} ... login(username, password) { const loginUrl = this.settingsManager.getBaseWsUrl() + '/auth/login'; return this.httpClient.post(loginUrl, { email: username, password: password }); }
I’ve tried this app, with this code on some Android devices and it works well.
It works well in debug mode with Chrome.
Now I’ve installed this app on a Huawei device (Honor Play COR-L29 with Android 9) and on this device the httpClient call fails.
I can’t see the error, so I can’t understand what is the problem.
The device is online.I’ve installed the Ionic Dev app on this device to try the app, but I can’t login because it seems that Ionic Dev too doesn’t reach the Network.
So, is it a problem between the network plugin of Ionic and Huawei?
Do you ever had this problem?
Are there any other tests I can do to debug the problem?
I have no idea.Thank you very much
Claudio
Posts: 1
Participants: 1