Open lost-codee opened 3 years ago
Same here :S works fine on iOS/android. I noticed that it does not really ever throw any exceptions. :S Those would be quite helpful (because with web it might just be a cors issue).
The error thrown is XMLHttpRequest.
To Solve Flutter Web getting 'XMLHttpRequest' error while making HTTP call Error Most cases of this error just add Access-Control-Allow-Origin value in the header might resolve the issue. Just make sure to replace all Underscore by Dash.
@bazrafkan can you please look into this issue? @marcoAtEnvidual I tried adding headers: {'Access-Control-Allow-Origin': '*'} but no luck with this workaround.
@og1-alarm I eventually got it working by dropping the plugin and writing my own micro service and routing the calls through that one. :S not an elegant solution but we were pressed for time
in flutter web, all requests are retuning null value.
Instead of using this plugin, I created a utility class for Google places auto complete : https://arkapp.medium.com/flutter-and-google-map-for-beginners-part-1-fdba4ab22148
Instead of using this plugin, I created a utility class for Google places auto complete : https://arkapp.medium.com/flutter-and-google-map-for-beginners-part-1-fdba4ab22148
is this working on Flutter web?
I'm experiencing the same issue. In Flutter web, all requests are returning null value. Since this has been an open issue for over 8 months, this package should not be advertised as working for Flutter web. I moved to flutter_google_places_sdk instead.
in flutter web, all requests are retuning null value.