flutter_google_maps
flutter_google_maps copied to clipboard
TargetPlatform.macOS is not yet supported when opening in browser
When i use the plugin, it works fine on iOS and Android. When i use flutter web to deploy to the browser, i get the error message "TargetPlatform.macOS is not yet supported by the maps plugin". I get that desktop is not yet supported but I'm running in the browser, not on desktop
Steps to Reproduce
you can see an example here:
https://fitz-test.netlify.app/
If you select any city you go to a screen where normally there would be a map but you see the error.
Expected results:
See a google maps screen
Actual results:
The message: "TargetPlatform.macOS is not yet supporte by the maps plugin"
Hey @yannickvg, you have to activate the 'Maps JavaScript API' Key in your Google Cloud Console
Hi, I don't think that is the problem. The key I was using was not restricted to any API. I created a new key with, restricted just to the 'Maps JavaScript API', and it still gives the same result.

Did you find any solution to this? I am facing the same problem.
Hi, @yannickvg did you enable maps sdk for javascript?
you may have forgotten to add js sdk script in web/index.html? https://pub.dev/packages/google_maps_flutter_web#usage