It works fine when I use the Browser with Ionic Serve but when I try to run it on my phone with android studio I get an ERR_CONNECTION_REFUSED (when I use localhost, which makes sense) or anhttps://192.168.0.120:55275/umbraco/HbigApp/HbigAppSurface/GetBetriebeStartsWith net::ERR_SSL_PROTOCOL_ERROR (when I use my laptops IP). The port is correct, the backend is up and running. I have cleared the caches on all my Browsers, I have tried using my phones hotspot and I'm really not sure anymore what I could do. My backend is in ASP.net, frontend is Ionic 5.
Frontend:
getUrl(action: string) {
if (isDevMode()) {
return (
"https://192.168.0.120:55275/umbraco/HbigApp/HbigAppSurface/" + action
);
}
return (
"https://www.hierbinichgast.de/umbraco/HbigApp/HbigAppSurface/" + action
);
}
getBetriebe(): Observable<any> {
const params = new HttpParams();
return this.http.post<any>(this.helperService.getUrl("GetBetriebeStartsWith"),
params,
{headers: this.headers}
);
}