When my apk enter in this Login.Service from the android
import { Injectable } from ‘@angular/core’;
import { HttpClient } from ‘@angular/common/http’;
import { HttpClientModule } from ‘@angular/common/http’;
import { map } from ‘rxjs/operators’;
import { Platform } from ‘@ionic/angular’;
@Injectable({
providedIn: ‘root’
})
export class LoginService {
constructor(public http: HttpClient,platform: Platform) {
}
IniciarSesion(usuario:string,clave:string){
//in this line it crashed
return this.http.get(“http://api.miscalleslimpiasrd.tecnolora.com/api/MisCallesLimpiasRD/IniciarSesion/"+usuario+"/"+clave+"”)
}
}
it crashed and closed unexpectedly, but when I run the app from the browser it works correctly
2 posts - 2 participants