A user reports that the Discourse app on Android misbehaves in the app switcher, interpreting touches as swipe-up gestures to close the app instead of switching to it. emyoulation suspects the issue stems from how the app registers with the OS, possibly due to overly sensitive gesture handling. Falco clarifies that the app is a PWA managed by Chrome/Android, but emyoulation notes the behavior occurs before the OS hands off to the app, suggesting the issue may lie in the app’s registration or configuration. After uninstalling and reinstalling the Chrome PWA, the sensitivity issue was resolved, indicating the problem was related to the app’s installation or settings. emyoulation suggests that clearer provenance or registration settings could help prevent such issues in the future.
Can the Discourse App for Android check if it incorrectly specified a gesture sensitivity?
The Discourse app tends for Android tends to misinterpret the gesture while in the app switcher. When trying to switch switch to the app with a touch, it almost always Closes the app instead.
Just for this app, it tends to interpret a touch (activate) as a swipe-up (close app). I suspect the OS gesture sensitivity is being overridden by the app because none of the other apps anywhere NEAR as sensitive.
With the Discourse app, I must press & hold to avoid a Swipe Up. Even then, if I do not take especial care to lift STRAIGHT up, it may still swipe.
I’m not aware of who/what created it. I’m a user (and nominally a moderator) of a Discourse forum, not an admin.
However, the behavior is occurring BEFORE the Android OS hands off to the App. So that implies Chrome should not be the culprit.
I would expect this be related to how the app register itself with the OS during the OnCreate part of the code? (I assume there would have to be a registration to allow various actions to be prohibited.) In that registration, I wonder if the developer set it to pass too many parameters? (Like CSS it should only be setting those that are critical and different from the default. All the rest should be inherited from the parent settings.)
Took awhile to identify this tool. To rediscover its origin (it was installed 2.5 years ago & I’ve slept since then), it was necessary to uninstall and find where the App was proffered.
Yes, it was the Chrome PWA. Reinstalling cleared the Gesture oversensitivity for Swipe-up.
If a developer has to do anything to make the Discourse PWA for hosted sites “installable”, perhaps there is a registration or string setting to make the App Info’s provenance more explicit?