Open N3rdix opened 1 year ago
Bump, any update on this?
I just saw the hold action was added for tile cards (#18345) and the same problem pops up there as well.
Cross-linking to https://github.com/home-assistant/iOS/issues/2103
One additional remark: it also does not work with mobile safari on iPhone, with Chrome on iPhone it works as expected.
As I stated in the iOS companion app issue, this is about finger placement/movement which appears to be much more sensitive on iOS than Android to small movements. I am not sure if this can be remedied or improved upon.
Also explicitly quoting this here:
I can confirm that I have the same behaviour in Mobile Safari and the iOS app. Holding down my finger on an entity doesn't bring up the expected hold_action; but it doesn't trigger the normal (short) tap action either. I just get a blue circle that disappears when I release.
I've tried for several dozen times to hold-without-moving, but wasn't able to trigger the hold_action even once. I also noticed that when I moved my finger purposely, the blue circle disappears. So this is a different behaviour from when I actually try to hold-without-moving. Based on the UI feedback, it does appear that I'm performing the hold-action (blue circle), but that it doesn't trigger the configured action.
I find that the blue circle sometimes stays longer, other times goes away much quicker. The trick is to release your finger while the blue circle is still visible, in that scenario it registers as a hold. If you release it after the blue circle disappears it will register as a click, which can be problematic.
I find that the blue circle sometimes stays longer, other times goes away much quicker. The trick is to release your finger while the blue circle is still visible, in that scenario it registers as a hold. If you release it after the blue circle disappears it will register as a click, which can be problematic.
Can confirm that, works if your fingers are fast enough 😃 Nevertheless hopefully investigates that behavior and fixes it. Happy to provide more details...
I find that the blue circle sometimes stays longer, other times goes away much quicker. The trick is to release your finger while the blue circle is still visible, in that scenario it registers as a hold. If you release it after the blue circle disappears it will register as a click, which can be problematic.
I think the trick is actually to lift your finger without moving it to the side, which is very difficult to pull off.
According to Apple's Developer Documentation, long-press differentiates between "long-press without any movement at all" and "long-press and move":
Long-press gestures are continuous gestures, meaning that your action method may be called multiple times as the state changes. After a person’s fingers have touched the screen for the minimum amount of time, a long-press gesture recognizer enters the UIGestureRecognizer.State.began state. The gesture recognizer moves to the UIGestureRecognizer.State.changed state if the fingers move or if any other changes occur to the touches. The gesture recognizer remains in the UIGestureRecognizer.State.changed state as long as the fingers remain down, even if those fingers move outside of the initial view. When a person’s fingers lift from the screen, the gesture recognizer enters the UIGestureRecognizer.State.ended state.
_(from Apple Developer Documentation: Handling long-press gestures)_
And true enough, if you long-press a button, after 0.5 seconds the "hold" circle appears, but if you tilt your finger ever so slightly, it disappears right away. Again, preventing this while lifting your finger is almost impossible to pull off reliably.
Maybe GestureRecognizer.State.change has to be considered in a different way by the iOS frontend implementation?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
This is still an issue.
Same for me unfortunately
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
This is still an issue. Happens on my iPad and iPhone. Latest iOS 17.
Although nothing changed I work around this issue by trying to release my finger fast enough when this blue circle appears. Not ideal but in most cases my timing is good enough.
But I still hope someone can fix this regression...
I tried something like that too, but it was unusable for me (and my SO).
I ultimately resorted to double tap instead of long tap. It’s a pity that long tap is so unreliable 😟
Checklist
Describe the issue you are experiencing
cards like the button card configured to perform an URL action when long-pressing the entity does not work any longer (maybe since ios 17 or the companion app update as it is still working in Chrome/Safari). Configuring the URL action as tap_action still works as expected, only hold_action does not work. Other hold_action types like "navigate" still work fine.
https://github.com/home-assistant/frontend/assets/70015952/f04492c3-5a56-4614-baa5-6c19fa3b9be1
Describe the behavior you expected
URL opens in browser when long-pressing the entity in the card
Steps to reproduce the issue
What version of Home Assistant Core has the issue?
2023.10.5
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
iOS companion app
Which operating system are you using to run this browser?
iOS 17
State of relevant entities
No response
Problem-relevant frontend configuration