Skip to content

Places: Failed to load Google Maps script in iOS devices from first attempt #844

Open
@anastasiia-nikita

Description

@anastasiia-nikita

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)
		})
	}, []) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoThis issue needs more information from the customer to proceed.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions