Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 12 - Recording stopps #1051

Open
BorderCounter8812 opened this issue Feb 10, 2023 · 2 comments
Open

Android 12 - Recording stopps #1051

BorderCounter8812 opened this issue Feb 10, 2023 · 2 comments

Comments

@BorderCounter8812
Copy link

I have the following problem:

Device: ONEPLUS 7T
OS: OxygenOS 12.1 (Android 12 HD 1903_11.F17) Security Patch 5 August 2022
GPSLogger version: 125

If I have activated a recording, everything works without problems. If I now turn off the display and wait about 1 minute and then turn on the display again, the app stopped to Work at the moment the display was turned off. It didn't quit, it just didn't do anything from that moment on. It also continues to indicate that recording is active.
If you go into the "Log View", no events are logged from that moment on. Even if you activate the display again, the app does nothing more. "Recording" is activated, but the app does nothing.

You have to stop the recording manually and start it again so that the app continues with the recording.

However, if you have the phone connected to the charging cable, the problem does not occur. Then the app continues recording even when the display is disabled.

The problem has only occurred since ONEPLUS rolled out Android 12 in December.

What can I do?
"Optimize battery" is disabled for the app
"Background activity" is enabled
"Location always" is enabled

The DEBUG file does not show any errors or similar. The app simply does nothing more as soon as you deactivate the display and activate it again.

@mendhak
Copy link
Owner

mendhak commented Feb 13, 2023

In addition to the ones you've mentioned, there's a few more optimizations you could try, listed on this page. Could you give them a try: https://dontkillmyapp.com/oneplus

@BorderCounter8812
Copy link
Author

hey,
thanks for your message.
I am of the opinion that I have set everything correctly.
furthermore i noticed that if i have "record passive locations from other apps" enabled, the app works even with the display off. otherwise not :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants