Question

So I'm in the beginning stages of my app and don't have a server backend yet. So for now I'm parsing the JSON from Google Places inside the App (in general I would need to do that on the server side, right?)

Since I don't have a server I generated a "Key for Server Applications" using the IP 0.0.0.0/0

My second question is, sometimes I get a "REQUEST_DENIED" when I run the following command: https://maps.googleapis.com/maps/api/place/details/json?reference=REF_NUM&sensor=true&key=MY_KEY on the phone but of-course it works when I run it on curl.

Am i doing something wrong? what doesn't it work all the time?

Was it helpful?

Solution

Could you be making too many requests per second? Try putting a one second delay between requests and see if that helps. Ultimately, the delay can probably be shorter, but starting here could help narrow down the problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top