this post was submitted on 05 Aug 2023
807 points (98.0% liked)

Android

17722 readers
99 users here now

The new home of /r/Android on Lemmy and the Fediverse!

Android news, reviews, tips, and discussions about rooting, tutorials, and apps.

🔗Universal Link: [email protected]


💡Content Philosophy:

Content which benefits the community (news, rumours, and discussions) is generally allowed and is valued over content which benefits only the individual (technical questions, help buying/selling, rants, self-promotion, etc.) which will be removed if it's in violation of the rules.


Support, technical, or app related questions belong in: [email protected]

For fresh communities, lemmy apps, and instance updates: [email protected]

💬Matrix Chat

💬Telegram channels / chats

📰Our communities below


Rules

  1. Stay on topic: All posts should be related to the Android OS or ecosystem.

  2. No support questions, recommendation requests, rants, or bug reports: Posts must benefit the community rather than the individual. Please post to [email protected].

  3. Describe images/videos, no memes: Please include a text description when sharing images or videos. Post memes to [email protected].

  4. No self-promotion spam: Active community members can post their apps if they answer any questions in the comments. Please do not post links to your own website, YouTube, blog content, or communities.

  5. No reposts or rehosted content: Share only the original source of an article, unless it's not available in English or requires logging in (like Twitter). Avoid reposting the same topic from other sources.

  6. No editorializing titles: You can add the author or website's name if helpful, but keep article titles unchanged.

  7. No piracy or unverified APKs: Do not share links or direct people to pirated content or unverified APKs, which may contain malicious code.

  8. No unauthorized polls, bots, or giveaways: Do not create polls, use bots, or organize giveaways without first contacting mods for approval.

  9. No offensive or low-effort content: Don't post offensive or unhelpful content. Keep it civil and friendly!

  10. No affiliate links: Posting affiliate links is not allowed.

Quick Links

Our Communities

Lemmy App List

Chat and More


founded 1 year ago
MODERATORS
 

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

You know how in Android the back button is sometimes not a back button? It sometimes transforms to a close button (modal, image overlay, keyboard, etc.)

With an app built for iOS, these “close on back” was not working

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

As a web app, such behaviour will also need to be programmed to work on a browser first. Packaging it for Play Store should not grant that behaviour automatically.

(2) Image overlay For Voyager, back button for image overlay works in browser.

When opening an image viewer, the web app triggers a browser history change like this:

  1. Browsing on feed - https://vger.app/posts/lemmy.world/all
  2. Opening an image viewer - https://vger.app/posts/lemmy.world/all#galleryOpen

^ notice the extra #galleryOpen

When back button is triggered, the web page will listen to a "back" event, and close the image viewer.

(3) Keyboard: Keyboard is a native UI. So triggering "back" will always close the keyboard

(1) Modal / bottom sheet

But... I couldn't figure out this one yet

Clicking on the "3 dots icon" in a post opens a bottom sheet interface.

Play Store version response to back button properly. But the web app version does not.