question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App closed, phone sensors are not updating

See original GitHub issue

Home Assistant Android version: 2.3.0-306-full

Android version: 10.0.7

Phone model: OnePlus 7pro

Home Assistant version: 0.114.3

Last working Home Assistant release (if known): Unknown

Description of problem: When I close the HA companion app on my phone, non of the app related sensors are updating in HA.

Traceback (if applicable):


Screenshot of problem:

Additional information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
anyuta1166commented, Sep 1, 2020

Fortunately on my devices closing the app (or removing from recent apps) is not the same as Force Stop, so the periodic work continues to run. I’ll test your PR tonight to check if it makes any differences. I wonder if it will bypass the doze mode on Android 9+ or not.

1reaction
anyuta1166commented, Sep 3, 2020

May be a service with a permanent foreground notification could help?

Or abuse alarms as other applications do? 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to Do if Your Android Phone's Proximity Sensor Stops ...
1. Clean Dirt and Dust Near the Sensor · 2. Check to See if a Screen Guard Is Blocking It · 3. Update...
Read more >
Sensors not updating properly after latest App release
Every other sensor for the phone was updating (charge level, charge type, location etc.). The only other odd thing is the TTS switching...
Read more >
How do I fix the proximity sensor on my Android phone?
Solutions to Proximity Sensor Not Working usually involve restating your phone, updating the phone, reseting mobile device, finding repair service,etc.
Read more >
[CLOSED]all sensors stopped working after the upgrade to Q!!!
After updating to Android 10 the app does not load and locks up the phone until I restart. I hope you fix this...
Read more >
Sensors Off | Android Open Source Project
Update any first-party apps to handle the onError callback with this ... If an app is using the microphone when Sensors off is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found