Hi,
I have a question on HTTP Get Request. I use Google Places API to get a nearby search request using HTTP Service. It works perfectly for Android on the device, while running on IOS real device it results in error, when i try to log the JSON , it displays {“isTrusted:true”}. It also works well with the IOS emulator. Not sure on what i do is wrong in this.
Is it something to do with CORS error??
code for HTTP Request:
var results = this.http.get('https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=10.122,28.362&radius=500&type=restuarant&key=´Your_Key´');
results.subscribe(
data =>
{
this.foundResults = data.json();
console.log("json:",this.foundResults);
},
err => {
console.log('Json Stringify error:',JSON.stringify(err.json()));
});
On the console, i see the below comment.
Looking forward to hear more comments on this.
Regards
Suresh