Open
Description
Hi, there. I am using the @googlemaps/js-api-loader (v: 1.16.2) package in a React/Next app. I am noticing that for many users in our app that use iOS devices failed to load places library from first attempt. Do you have some problem with compatibility with iOS?
The way I import the library is:
const options = {
id: 'google-map-script',
apiKey: googleMapsApiKey,
language: 'en',
region: 'EN',
version: 'weekly',
}
useEffect(() => {
new Loader(options).importLibrary('places')
.then(() => {
dispatch(setGoogleMapsScriptLoaded(true))
}).catch(e => {
console.error('Google map loading failed:', e)
})
}, [])