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

Autocomplete not working on android browser, after useJsApiLoader execute the isLoaded not turned to true #3320

Open
tianzige886 opened this issue Jan 1, 2024 · 0 comments

Comments

@tianzige886
Copy link

tianzige886 commented Jan 1, 2024

Issue template

import { Autocomplete, useJsApiLoader } from "@react-google-maps/api";
export function Positions () {
const { isLoaded, loadError } = useJsApiLoader({
googleMapsApiKey: "xxxxx",
libraries: ["places"],
id: "__googleMapsScriptId",
});

  useEffect(() => {
    alert(isLoaded);
  }, [isLoaded])

}

Please provide an explanation of the issue

above code, the result of alert is false, isn't turned to true, so i think useJsApiLoader is not load api success.
work fine in computer browser and ReactNative IOS environment, but not work in android device browser and app webview env.
help me ~~~

Your Environment

os: android

node --v16.16.0

react version v18

webpack version 5

@babel version

@react-google-maps/api version

How does it behave?

How should it behave correctly?

Basic implementation of incorrect behavior in codesandbox.com

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