Git Product home page Git Product logo

Comments (13)

mehdok avatar mehdok commented on July 18, 2024

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.

SergejDK avatar SergejDK commented on July 18, 2024

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.

SergejDK avatar SergejDK commented on July 18, 2024

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.

mehdok avatar mehdok commented on July 18, 2024

@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.

SergejDK avatar SergejDK commented on July 18, 2024

@mehdok
I'll try to get some logs today or tomorrow.

from background_locator.

SergejDK avatar SergejDK commented on July 18, 2024

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.

log.txt

from background_locator.

SergejDK avatar SergejDK commented on July 18, 2024

Here are some screens of the example app - maybe this will help....

Motorola - Android 9
WhatsApp Image 2020-04-08 at 20 10 09
WhatsApp Image 2020-04-08 at 20 10 09 (1)

Android 10 - One Plus 6T
WhatsApp Image 2020-04-02 at 21 05 13

from background_locator.

RomanJos avatar RomanJos commented on July 18, 2024

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.

mehdok avatar mehdok commented on July 18, 2024

@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.

RomanJos avatar RomanJos commented on July 18, 2024

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.

mehdok avatar mehdok commented on July 18, 2024

With current base code, No. But it is possible.

from background_locator.

mehdok avatar mehdok commented on July 18, 2024

I'm closing this issue due to no activity. Feel free to open it anytime.

from background_locator.

SergejDK avatar SergejDK commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.