espruino / espruino/BangleApps
[App History] Not resetting history on long press
- Dominant language
- JavaScript
- Stars
- 571
- Forks
- 1.3k
- Avg merge
- 17h 38m
- Merged PRs (30d)
- 17
Description
### Affected hardware version
Bangle 2
### Your firmware version
2v29.81
### The bug
I've been using the app for a while now, and when I long-press back to. the clock, it doesn't clear the history, which leads to random apps opening if that was the last app before long pressing away. I know that there is a specific time the user has to press to count as a long press, and works vice-versa, but I can't figure out how to clear the history at all via a long press. The `apphist.json` never clears the history when I do a long press, leading to unexpected apps opening when an app tries to go back to the clock (messages timeout, etc.)
### Author
@thyttan
Contributor guide
Research direction
Start by locating the JavaScript handling for app history and the apphist.json data on Bangle 2, then reproduce the long-press behavior with firmware 2v29.81. Done means a long press back to the clock clears the history and prevents a stale app from opening during later navigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100