home-assistant / home-assistant/iOS

Stuck in subview dashboard, back-button doesn't work after restarting app.

Open
#2,323 5 comments 3 reactions 0 assignees View on GitHub
bug ios
Dominant language
Swift
Stars
2.4k
Forks
520
Avg merge
7h 27m
Merged PRs (30d)
264

Description

**iOS device model, version and app version**

Model Name: iPhone 11
Software Version: 16.3.1
App version: 2023.2 (2023.444) (I guess?)

**Home Assistant Core Version**
2023.3.5

**Describe the bug**
Closing the app from within a subview, gets you stuck into that subview. Back button doesn't work after re-opening the app.

**To Reproduce**
On iOs: go to a subdashboard (subview) that has the back button. Close the app. Really close it, not just background it. Re-open app: voila, you're stuck in that dashboard.
It seems that the app DOES store the last page visited, but it DOESN'T store the page history. It's my guess that since the back button (in subview) uses the history and there isn't one, the back button has nothing to do.

**Workaround**
Go to "Edit Dashboard" => "Manage Dashboard" and you're good to go again aka "unstuck".

**Expected behavior**
Well IF the back button is activated AND the history is empty THEN goto the default dashboard for that user?_

**Screenshots**

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.