You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/expo-setup.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ The plugin injects:
88
88
-**Android:**`com.google.android.geo.API_KEY` meta-data (when `googleMapsApiKey` or `androidGoogleMapsApiKey` is set) and location permissions (when location options are set)
89
89
-**iOS:**`GoogleMapsIosApiKey` in `Info.plist` and `betterMaps.iosGoogleProvider` in `Podfile.properties.json` (when `googleMapsApiKey` or `iosGoogleMapsApiKey` is set), plus location usage description strings (when location options are set)
90
90
91
-
On iOS, the API key and pod linkage are separate artifacts. The plugin keeps them in sync during prebuild. If you later remove Google Maps keys from the plugin config, re-run `expo prebuild`so `Podfile.properties.json` is updated and run `pod install`— a stale `"betterMaps.iosGoogleProvider": "true"` can leave the SDK linked after you stop providing a key. Bare React Native apps without the plugin must set both manually; see [Bare React Native](../README.md#bare-react-native) in the README.
91
+
On iOS, the API key and pod linkage are separate artifacts. The plugin keeps them in sync during prebuild. If you later remove Google Maps keys from the plugin config, re-run `expo prebuild`to remove both `GoogleMapsIosApiKey` and `betterMaps.iosGoogleProvider`, then run `pod install`to update the linked pods. Bare React Native apps without the plugin must manage both settings manually; see [Bare React Native](../README.md#bare-react-native) in the README.
92
92
93
93
## Run
94
94
@@ -113,7 +113,7 @@ The example's `prebuild` script builds the plugin (`build:plugin`) before runnin
| Blank Google map | Ensure `googleMapsApiKey` or the platform-specific Google Maps key is set, then run `expo prebuild` again. |
116
-
| iOS Google Maps key present but provider fails | iOS needs `GoogleMapsIosApiKey` in `Info.plist`**and**`"betterMaps.iosGoogleProvider": "true"` in `Podfile.properties.json`, then `pod install`. Re-run prebuild after changing plugin keys so both stay aligned. |
116
+
| iOS Google Maps key present but provider fails | iOS needs `GoogleMapsIosApiKey` in `Info.plist`**and**`"betterMaps.iosGoogleProvider": "true"` in `Podfile.properties.json`, then `pod install`. Re-run prebuild after changing or removing plugin keys so both artifacts stay aligned. |
117
117
| Location dot not showing | Set `locationPermission` or `locationAlwaysPermission` in the plugin options and re-run prebuild. |
118
118
| Plugin not found | Confirm `react-native-better-maps` is installed and listed in `plugins`. |
119
119
|`Cannot find module './plugin/build/index'`| Run `bun run build:plugin` in the package (or `bun run build` from the repo root) before prebuild when using a workspace link. |
return"react-native-better-maps: provider=\"google\" on iOS requires GoogleMapsIosApiKey in the host app Info.plist."
36
36
case.googleMapsSdkNotLinked:
37
-
return"react-native-better-maps: provider=\"google\" on iOS requires iosGoogleMapsApiKey or googleMapsApiKey in the react-native-better-maps config plugin to link the Google Maps SDK, then run pod install."
37
+
return"react-native-better-maps: provider=\"google\" on iOS requires the Google Maps SDK to be linked. Configure iosGoogleMapsApiKey or googleMapsApiKey in the config plugin, or set betterMaps.iosGoogleProvider=true in Podfile.properties.json, then run pod install."
38
38
caselet.unsupportedIOSProvider(provider):
39
39
return"Map provider \"\(provider)\" is not supported on iOS."
0 commit comments