react-nativegeocodinggoogle-geocoderreverse-geocodinggoogle-geocoding-api

Unable to use Google geocoding api in react native app


I'm trying to implement google's geocoding for reverse geocoding in my react native app, i wanted to apply restrictions in google console for iOS app with bundle id's. But when i apply restrictions i'm always getting ACCESS_DENIED response with google geocoding api url.

I have enabled the geocoding api and Maps Javascript API, and also the billing set up is done, but still i'm getting same response.

How do i implement reverse geocoding in my app with restrictions enabled for iOS.

Any Answers/Suggestions appreciated.

Thanks.


Solution

  • For Geocoding API, app restrictions don't work on iOS or Android. Only the Google Maps SDK can use bundle restrictions. With React Native, if you're using web APIs, you can only restrict by IP address.