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

TargetPlatform.macOS is not yet supported when opening in browser #42

Open
yannickvg opened this issue Jun 26, 2020 · 5 comments
Open

Comments

@yannickvg
Copy link

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"

@niklasbartsch
Copy link

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

@yannickvg
Copy link
Author

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

@abumoallim
Copy link

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

@ulusoyca
Copy link

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

@yevgeniaronov
Copy link

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

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

5 participants