flutter_google_maps icon indicating copy to clipboard operation
flutter_google_maps copied to clipboard

TargetPlatform.macOS is not yet supported when opening in browser

Open yannickvg opened this issue 4 years ago • 5 comments

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"

yannickvg avatar Jun 26 '20 12:06 yannickvg

Hey @yannickvg, you have to activate the 'Maps JavaScript API' Key in your Google Cloud Console

niklasbartsch avatar Jun 27 '20 19:06 niklasbartsch

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.

Screenshot 2020-06-28 at 23 28 05

yannickvg avatar Jun 28 '20 21:06 yannickvg

Did you find any solution to this? I am facing the same problem.

abumoallim avatar Aug 16 '20 12:08 abumoallim

Hi, @yannickvg did you enable maps sdk for javascript? image

ulusoyca avatar Sep 22 '20 11:09 ulusoyca

you may have forgotten to add js sdk script in web/index.html? https://pub.dev/packages/google_maps_flutter_web#usage

yevgeniaronov avatar Oct 14 '23 12:10 yevgeniaronov