Autocomplete not working on android browser, after useJsApiLoader execute the isLoaded not turned to true #3321
Unanswered
tianzige886
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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])
}
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 ~~~
Beta Was this translation helpful? Give feedback.
All reactions