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

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

Open
anastasiia-nikita opened this issue Apr 17, 2024 · 2 comments
Labels
needs more info This issue needs more information from the customer to proceed. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@anastasiia-nikita
Copy link

anastasiia-nikita commented Apr 17, 2024

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)
		})
	}, []) 
@anastasiia-nikita anastasiia-nikita added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Apr 17, 2024
@anastasiia-nikita anastasiia-nikita changed the title Failed to load Google Maps script in iOS devices from first attempt Places: Failed to load Google Maps script in iOS devices from first attempt Apr 17, 2024
@wangela
Copy link
Member

wangela commented Apr 17, 2024

If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.

@anastasiia-nikita Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

@usefulthink
Copy link
Contributor

The code looks perfectly fine to me, and there are no known issues with iOS support.

Can you maybe add a few more details what is actually happening so we can investigate?

@usefulthink usefulthink added needs more info This issue needs more information from the customer to proceed. and removed triage me I really want to be triaged. labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue needs more information from the customer to proceed. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants