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 freezes after using device back button

See original GitHub issue

Home Assistant Android version: 3.0.2-full

Android version: 11

Phone model: Galaxy S20 Ultra 5G

Home Assistant version: 2020.12.2

Last working Home Assistant release (if known):

Description of problem: The app freezes/becomes unresponsive if the device back button is used instead of the HA navigation controls.

The only option is to close the app by swiping it away from the list of applications after pressing the Overview button.

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):


Screenshot of problem:

Additional information:

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
RouNNdeLcommented, Jan 24, 2021

Sure. From a fresh install (I also tried to install in the Samsung’s ‘sandbox’ - Security Folder, same issue):

  • Login to the HA instance (external url, with 2fa)
  • Open App Configuration
  • Enable Lock App with 0 session time out
  • Go back to the webview (the App Configuration activity does not freeze)
  • Use the home button to ‘quit’ the app
  • Open the app again, confirm the biometrics, the app does work
  • Change the session timeout to something > 0, ex. 60
  • Again quit with the home button
  • Open the app, either from recent’s or from the launcher
  • The app is frozen, and needs to be removed from recent’s to work again

I also confirmed the issue on a Samsung A41.

0reactions
RouNNdeLcommented, Jan 26, 2021

Yes, as long as I’m out of the app for the full duration of timeout and then comeback. After solving the biometric’s challange the app is fully functional again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

app crashes when I hit the back button - android
android - app crashes when I hit the back button - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing organizational ......
Read more >
screen freezes when pressing the "Back" button - android
Hello Guys, When I run a JME3 Android game and press the devices' Back button I get a confirmation dialog with a Yes/No...
Read more >
Fix an Android device that freezes or won't respond
Try the following steps if your phone: Freezes Stops responding Is stuck with the screen on After each step, restart your phone to...
Read more >
Android Back Button causes crashing/closing - sometimes
Pressing the Back key will close/crash my app about 50% of the time. I am able to reproduce this issue using the example...
Read more >
Using the back button on an iPad / iPhone causes it to reboot.
I don't use Edge very often, I do like it, but it has had the most annoying bug on iOS since it's initial...
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