Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NemesisMiko opened this issue Dec 12, 2024 · 0 comments

Comments

@NemesisMiko
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant