Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webxdc: pressing "back" button closes the app instead of navigating within it #2530

Closed
WofWca opened this issue Apr 4, 2023 · 1 comment
Closed

Comments

@WofWca
Copy link
Collaborator

WofWca commented Apr 4, 2023

  • Android version:
  • Device:
  • Delta Chat version: 1.34.13
  • Expected behavior: I navigate back inside the app
  • Actual behavior: The app gets closed
  • Steps to reproduce the problem:
    1. Open a webxdc app that has navigation (like this one).
    2. Navigate somewhere inside the app (follow a relative, in-app link) (in the case of the linked app, go to settings).
    3. Press your phone's "back" button
  • Screenshots:
  • Logs:

I think this may have to do with the fact that the app is opened inside the iframe.

It's probably the same for iOS, but I didn't test.

Related: https://support.delta.chat/t/webxdc-desktop-navigation-buttons-back-forward/2506?u=wofwca

@r10s
Copy link
Member

r10s commented Apr 4, 2023

It's probably the same for iOS, but I didn't test.

no.

neither iOS nor desktop have "back buttons" comparable to android.

this issue was discussed before, and it was decided, that navigation inside the apps should work without relying on back button for now. so, eg. using dialogs, close upper right, buttons tabs, etc. at best, nothing that can be mixed with "back".

pwa have similar issues, with similar approaches, at least partly, see eg. https://dockyard.com/blog/2017/11/09/designing-for-pwas-without-the-back-button for a "forward style" avoiding "dead ends"

this is not always possible and sometimes hard, however, for small apps, this is usually doable.

we may think that over, at some point, sure. however, vikunja as a multi-feature-app is also not the best example, as we tend to avoid multi-feature-app for webxdc for now.

closing this issue here now as there is no clear actionable item for android. just adding "back" on android would raise new issues. this has to be discussed on a broader level first. timing wise, when the other pending webxdc questions are solved. of course, discussion can also continue here.

in between, we could add a hint to the docs.

@r10s r10s closed this as completed Apr 4, 2023
@r10s r10s added the discussion label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants