clustering_google_maps icon indicating copy to clipboard operation
clustering_google_maps copied to clipboard

android x

Open flutter-painter opened this issue 6 years ago • 7 comments

Hi @giandifra ! Congrats on the advances on the repo. Here is what I get from debug : "The Gradle failure may have been because of Android."

https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility

flutter-painter avatar Apr 10 '19 13:04 flutter-painter

Hi @giandifra ! Congrats on the advances on the repo. Here is what I get from debug : "The Gradle failure may have been because of Android."

https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility

Hi, thank you very much. I migrate the example to AndroidX. clustering_google_maps is a package not a plugin, i haven't Android folder in package

giandifra avatar Apr 13 '19 21:04 giandifra

Thanks for the quick reply. It tested again, it failed again. Issue actually came from the API key in Android Manifest : l32 & 33

I commented out these two lines and debug succeeds, but whether I load db or memory with fake data I get blank screen. I assume I should add my own android.geo.API_KEY ?

photo_2019-04-15_15-02-05 photo_2019-04-15_15-02-06

flutter-painter avatar Apr 15 '19 15:04 flutter-painter

Hi @giandifra, Should I configure android repo with my own API key ? Do I get it from firebase or from google API ?

flutter-painter avatar Apr 17 '19 10:04 flutter-painter

Hi @926,

you must insert Google Maps Api key in the AndroidManifest.xml file.

<meta-data android:name="com.google.android.geo.API_KEY" android:value="API_KEY"/>

You can retrieve api key from Google Api.

giandifra avatar Apr 18 '19 08:04 giandifra

Hi @giandifra,

Here are all the free geo APIs available on Google :

  • Directions API
  • Distance Matrix API
  • Geocoding API
  • Maps Elevation API
  • Maps Embed API
  • Maps JavaScript API
  • Maps SDK for Android
  • Places API

The Geolocation API starts at 5 USD / month. Is it the one ?

flutter-painter avatar Apr 18 '19 12:04 flutter-painter

You must find Google Maps API, to be used you need of credit card, but don't worry , it's free for use the simple maps on mobile devices

giandifra avatar Apr 19 '19 23:04 giandifra

Hi @giandifra thank for quick reply. Sorry but there are multiple APIs available for android. Hence the list. I already input card details, but the listed APIs I find required monthly subscription. Would you be able to share snapshot of the page to guide me ?

flutter-painter avatar Apr 24 '19 08:04 flutter-painter