Git Product home page Git Product logo

Comments (5)

mltbnz avatar mltbnz commented on July 30, 2024

Hi. Thanks for bringing this up.

When the observation mode is switched on the app should not send any new locations to the server.

If a location was sent to the server it will be cached for some time and I would think that is why you see them after enabling observation mode.

It takes around 5 minutes

from criticalmaps-ios.

dontyetknowmyusername avatar dontyetknowmyusername commented on July 30, 2024

Hi, thanks for replying :-)

Unfortunately, the location sharing seems to stop altogether after around 5 minutes, no matter, wether Observation Mode is turned on or off. I discovered this while playing with the settings for the Observation Mode. The only way to turn location sharing back on seems to be closing and re-opening the app -- and then again, after ca. 5 minutes, the markers disappear from the map (the map is also shown in a browser - firefox - on a different machine, not only in the apps on my 3 devices).

BTW, which part caches the location? The server or the app? Because closing the app results in nearly immediately vanishing markers from the map.

from criticalmaps-ios.

mltbnz avatar mltbnz commented on July 30, 2024

The server caches a sent location if no new location with the same id is sent.

It's correct that the location will disappear after around 5 minutes anyways since the app only will send a new location to the backend if the app generates a new one and that only happens if the user moves for roughly 200 meters.

Maybe it would be better to base sending a new location on a timer to like fetching other locations though since people sometimes need to wait.

I think I'll prototype that behavior and see if that doesn't increase the traffic too much

from criticalmaps-ios.

mltbnz avatar mltbnz commented on July 30, 2024

Please check the latest build from yesterday. Should resolve the issue

from criticalmaps-ios.

dontyetknowmyusername avatar dontyetknowmyusername commented on July 30, 2024

I just downloaded the app on all 3 of my devices (2 iPads, 1 iPhone), tried it and it seems to work. Thank you so much! Now I can express my solidarity even if I can't participate myself.

from criticalmaps-ios.

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.