react-native-maps-directions icon indicating copy to clipboard operation
react-native-maps-directions copied to clipboard

React-native-maps-directions does not work with restricted API key on iOS

Open NemesisMiko opened this issue 1 year ago • 5 comments

Summary

using the following libs..

If i DO NOT restrict the key for iOS, then the whole google maps is invisible inside the iOS build on Testflight, however the geocoding, the Places and Directions API, they all works. When I DO restrict the key, the google maps becomes visible, however all other libs such as geocoder, directions, places API, they seize to work. lol

Explain this to me.

The API/s i have restricted for my bundle identifier:

some.expo.app Geocoding API Geolocation API Maps SDK for iOS Directions API Distance Matrix API Maps Elevation API Maps Embed API Maps JavaScript API Maps Static API Places API Roads API Routes API Time Zone API

Reproducible sample code

import MapView, {Marker, PROVIDER_GOOGLE} from 'react-native-maps';
import MapViewDirections from 'react-native-maps-directions';
import Geocoder from 'react-native-geocoding';

"react-native-geocoding": "^0.5.0",
"react-native-maps": "1.10.0",
"react-native-maps-directions": "^1.9.0",
"expo": "~50.0.20",

Steps to reproduce restrict/unrestrict iOS key

Expected result working google maps + libs of use inside Google Maps API

Actual result Does not work.

React Native Maps Version 1.10.0

What platforms are you seeing the problem on? iOS (Google Maps)

React Native Version 0.73.6

What version of Expo are you using? SDK 50

Device(s) ALL IPHONES...

Additional information How can i solve it?

NemesisMiko avatar Dec 12 '24 10:12 NemesisMiko

Android either

Goowwy avatar Dec 25 '24 05:12 Goowwy

Yes, I am also facing same the same issue.

farazahmed12 avatar Feb 12 '25 07:02 farazahmed12

I also have the same problem, both Android and iOS

leocastroz avatar Mar 12 '25 20:03 leocastroz

same on IOS

MoFerhat avatar Mar 13 '25 22:03 MoFerhat

Same here for IOS and ANDROID

midomario avatar Apr 09 '25 20:04 midomario