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

Ionic 5 and angular httpclient request is working on system but not working on android device

$
0
0

import { HttpClient } from ‘@angular/common/http’;

constructor(private httpClient: HttpClient);

this.httpClient.get('https://www.ramanujan.in/RAMANUJAN_GURUCOOL/RAMANUJAN_APP/get_fleet_expense_month.php?Database=’+Db+’&MonthAcademicYear=’+this.AcademicYear+’&MonthBusNo=’+this.BusNo) .subscribe((data) =>{ console.log(data); }, error => { console.log(error); alert(JSON.stringify(error)); }); this one is working on device

this.httpClient.get('https://www.ramanujan.in/RAMANUJAN_GURUCOOL/RAMANUJAN_APP/get_fleetquarterlyincome.php?Db=’+Db+’&Year=’+this.AcademicYear+’&BusNo=’+this.BusNo) .subscribe((res)=>{ console.log(res); }, error => { console.log(error); }); this one is not working on device i have attached the image of the error i am getting

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49235

Trending Articles



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