Coder Social home page Coder Social logo

Comments (5)

jbraese avatar jbraese commented on June 30, 2024

On Android 11, after location tracking has been enabled for a while it sometimes shuts off while the "Toggle location tracking" button is still set to "Running". This becomes apparent as no new locations are registered. When toggling the button, the status does not change from "Running" to "Stopped" as expected, but stays on "Running". Clicking it again switches it to "Stopped".

This issue is usually observed after a period of inactivity of the phone (eg in the morning after sleeping). So far I had no success in reproducing the bug with a short period of inactivity during the day (I tried airplane mode and battery saver mode). I also so far haven't been able to reproduce the bug on an emulated device in Android Studio.

from simport-learning-app.

jbraese avatar jbraese commented on June 30, 2024

I was able to capture a log of the bug on a Pixel 4a, see attached. After no locations were logged in several hours even though the
tracking was set to "Running", captured in the log is when I clicked the button three times, resulting in the in-app button being displayed as Running -click-> Running -click-> Stopped -click-> Running after which point the tracking was started again as expected.

issue97_pixel4a.log

from simport-learning-app.

schrooom avatar schrooom commented on June 30, 2024

Quick update:
Unfortunately the logs are not revealing any issues on this problem. I'm currently testing the location-updates on an Android 11 with the changes that I made so far (on branch feature/android-location-updates) and probably can report back on the next weekly.

from simport-learning-app.

zven avatar zven commented on June 30, 2024

I'll also test the current state of this branch with some Android devices. I think the issue @jbraese observed was actually twofold: First the tracking stops at a certain point / is stopped (by the OS?). Second, the UI was not updated properly. For now, I would say we can only mitigate the second problem to a certain extent.

from simport-learning-app.

zven avatar zven commented on June 30, 2024

Testing the current state of this branch on Android 7.0 the tracking worked for five days and then stopped. Again, I had to click on the Start/Stop-Button multiple times until I was able to start the location tracking again (button seemed to be stuck in running state).

from simport-learning-app.

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.