Plugin: Geolocation #121
Plugin: Geolocation #121
Comments
Android location APIs from Play Services: https://developers.google.com/android/reference/com/google/android/gms/location/package-summary (the android.location APIs are not recommended. Android wants us to use the Play Services APIs for location) |
No longer in scope for the hackathon. |
There is right now a simple way to ask for the last known location in Android:
Is there an easy way to get location udpates? Because I can not create a LocationListener from Dart and pass it to Java. |
It is possible to access Plateform Services to request location updates. I made a little demo available at https://github.com/a14n/flutter-geolocation-demo that shows how to do that. See the Android code that forwards locations to the flutter part. |
My understanding is that our strategy is to build out a plugin/interop layer, and then use that to allow the ecosystem (flutter team? developers?) to build a Geolocation service. I'm going to close this issue in the meantime. However, ensuring GPS/Geolocation can be exposed via plugins/interop is on the radar and important. We're just unlikely to deliver this specific API directly as part of Flutter. |
This blocks customer:mulligan, as it requires the current/last location for a critical user flow. |
When doing this, consider writing #1432 at the same time. |
Wednesday Aug 05, 2015 at 19:34 GMT
Originally opened as https://github.com/flutter/engine/issues/471
Some features include:
The text was updated successfully, but these errors were encountered: