Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

App crashed when it enter in the login.Service and return this.http.get

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>