Skip to content

Android: back button navigates webview history - #263

Merged
naltatis merged 3 commits into
mainfrom
android-back-button
Aug 18, 2026
Merged

Android: back button navigates webview history#263
naltatis merged 3 commits into
mainfrom
android-back-button

Conversation

@naltatis

Copy link
Copy Markdown
Member

fixes #257

Android's hardware/gesture back button closed the app from anywhere. The evcc web UI pushes history entries for routes and modals, so the native side can simply walk the WebView history instead of finishing the activity.

  • Back button steps back through the WebView history (routes and modals); at the root it keeps the default behavior and leaves the app.
  • React Navigation modals (server switcher etc.) are unaffected, they already handle back natively.
  • iOS unchanged.
  • Also documents the commit/PR prefix convention (platform or app area) in AGENTS.md.

@naltatis naltatis added enhancement New feature or request android Android specific issue labels Aug 18, 2026
# Conflicts:
#	screens/MainScreen.tsx
@naltatis
naltatis enabled auto-merge (squash) August 18, 2026 09:29
@naltatis
naltatis merged commit da34e72 into main Aug 18, 2026
12 checks passed
@naltatis
naltatis deleted the android-back-button branch August 18, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Android specific issue enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Android) zurück Button beendet die App

1 participant