Comments (13)
It's not normal on Android
. Android should update the location in interval you set in settings, however it's normal on iOS
, because iOS is more efficient and will not send anything when there is no change.
Anyway if you can share some logs it will help with debugging process.
from background_locator.
I just have some screenshots from the app - I don't know if this will help you. O'm currently trying to check when this explicitly happens so it is easier to debug...
from background_locator.
it's normal on iOS, because iOS is more efficient and will not send anything when there is no change.
Do you know when iOS says it is a change
e.g. I went through my appartment and didn't send out other times ...
from background_locator.
@SergejDK When it receives new location it will update you with that, maybe it can not receive new location in your appartment? Please keep in mind that android will send repetitive data if it can not receive new location in specified interval but iOS won't.
On the other hand if there is a bug a few log would be nice.
from background_locator.
@mehdok
I'll try to get some logs today or tomorrow.
from background_locator.
Added a little log file with timestamp and location but forgot to remove the dart logging...
At Around 18:00 you can see some 2-3 Minutes time difference between the calls. I'll try to run it one more time to see if I can recreate the big time difference between the calls. After 18:25 my macbook had no battery ...
Setup: Android 9 - Motorola G6 Plus - I let the phone in the same position nearly all the time.
from background_locator.
Here are some screens of the example app - maybe this will help....
from background_locator.
Sometimes I get a big jump on the polyline too but I believe its android that don't reply a position idk
On the last screenshot I see that the position overlap on each others exactly like me, I thought it was my fault on how I sended it on the network but apparently not I will retry tomorrow because I'm now using multipart to upload the file instead of putting readAsString
in the body
from background_locator.
@SergejDK It looks pretty normal to me, as you know getting location in interval in both Android and iOS is not guaranteed. The os will send the location based on many parameters: the priority of the background service, battery and cpu usage .....
There might be some vital os process which needs immediate consideration and os can decide to pause other non vital process for a while, Or the phone might getting to hot and os decide to pause enrgy consuming process for a while, that's more of internal os matter.
So I think a jump like this is absolutely normal.
from background_locator.
Do you think you can make sure to call the callback even if there is no new location ? To retrieve the time at which the person was here I need to write the time and the position in a file where if the plugin make a call with nothing I could write an empty value and retrieve the time by adding the first position time with this position's number * interval in the list
from background_locator.
With current base code, No. But it is possible.
from background_locator.
I'm closing this issue due to no activity. Feel free to open it anytime.
from background_locator.
Was checking if it is android which makes this breaks between the calls but it seems to be something with the library.
I tried with the google-sample and it worked perfectly:
https://github.com/android/location-samples/tree/master/LocationUpdatesForegroundService/app/src/main/java/com/google/android/gms/location/sample/locationupdatesforegroundservice
Maybe you/we can check on how to make the sample work in this library? Would be great because then it is possible to get RealTime data....
from background_locator.
Related Issues (20)
- How can I send data from location callback to controller? HOT 1
- location_callback_handler.dart not found when run release project HOT 5
- [ERROR:flutter/shell/common/shell.cc(93)] Dart Error: Dart_LookupLibrary: library 'package:untitled/location_callback_handler.dart' not found. HOT 4
- Unable to build flutter release version with background_locator lastest HOT 1
- Library Update
- Issue on release build HOT 8
- Unable to capture location in release mode (Android) HOT 4
- Unable to run on iOS
- Error java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient HOT 1
- Error on init app flutter with carp_background_location HOT 5
- java.lang.IncompatibleClassChangeError: The method 'com.google.android.gms.tasks.Task com.google.android.gms.location.FusedLocationProviderClient.requestLocationUpdates(com.google.android.gms.location.LocationRequest, com.google.android.gms.location.LocationCallback, android.os.Looper)' was expected to be of type virtual but instead was found to be of type interface (declaration of 'rekab.app.background_locator.provider.GoogleLocationProviderClient' appears in /data/app/com.doa.lojisoft.saray-JqLCd0a12SEpAYQu6cUZjg==/base.apk:classes2.dex) HOT 2
- Service stopped suddenly in release mode android
- Data type mismatch (nullable type) and method implementation error in kotlin code just after adding the dependency HOT 1
- [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument: is a regular instance: Instance of 'LocationDto'
- What is speed measured in?
- How to stop service after a period of time?
- Upgrade Background_Locator
- Need Code or Library in kotlin only
- I so confused about "getting location updates even when the app is killed" !!!!
- Is it still maintained? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from background_locator.