Closed jesussmile closed 1 year ago
This question is mentioned in readme.md in FAQ section. I am closing this now, reopen if you still have problem about this.
Ah! sorry about that, working fine Here, updated code and some debug
Future<void> locatePosition() async {
final appData = context.read<ProviderService>();
_locationSubscription = LocationMarkerDataStreamFactory()
.fromGeolocatorPositionStream()
.asBroadcastStream()
.listen((location) async {
if (location != null) {
initPosT = LatLng(location.latitude, location.longitude);
initPos = GeoPoint(
latitude: location.latitude, longitude: location.longitude);
appData.setPosition(initPosT);
mapController!.move(initPosT, 18);
appData.myCurrentLocation(initPos);
String address =
await AssistantMethods.searchCoordinateAddress(initPosT, context);
print("This is your Address:: $address");
if (initializeGeofire) {
InitializeGeoFire initializeGeoFire = initializeGeoFire_helper();
initializeGeoFire.initializeGeoFireListener();
}
Provider.of<ProviderService>(context, listen: false)
.closeSplashScreen(false, true);
AssistantMethods.retrieveHistoryInfo(context);
_locationSubscription.cancel();
}
});
}
However I get some Sensor manager events, unregisterListener/ registerListener, is it normal ?
D/SensorManager( 4364): unregisterListener :: 5, Rotation Vector Non-wakeup,
D/SensorManager( 4364): unregisterListener :: 28, lsm6dsm Accelerometer Non-wakeup,
D/SensorManager( 4364): unregisterListener :: 26, AK09918 Magnetometer,
D/SensorManager( 4364): registerListener :: 5, Rotation Vector Non-wakeup, 100000, 0,
D/SensorManager( 4364): registerListener :: 28, lsm6dsm Accelerometer Non-wakeup, 100000, 0,
D/SensorManager( 4364): registerListener :: 26, AK09918 Magnetometer, 100000, 0,
I am not sure about that it is normal or not. It is not handle by this plug-in but geolocator.
Hi, great library, I am using your plugin while calling Geolocator to get some streams and updates as well, I am not entirely sure but i think there is a conflict issue when i use Geolocator to get location in my class for example
when executing this code i get something like this
how should i approach this issue ? I want to get current location lat / lon and perhaps a stream.