mendhak/gpslogger

Android 12 - Recording stopps

BorderCounter8812 opened this issue · 2 comments

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.

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

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 :(