iOS icon indicating copy to clipboard operation
iOS copied to clipboard

hold_action not responding

Open martoq opened this issue 2 years ago • 2 comments

iOS device model, version and app version

Model Name: iPhone 11 Pro Software Version: 15.3.1 App version: [2022.3]

Home Assistant Core Version

[2022.3.7]

Describe the bug ios app does not respond to hold_action in lovelace. Desktop works, ios app does not.

To Reproduce hold button, no response

Expected behavior hold button, action performed.

Screenshots

Additional context

This appears to have been an issue since January of last year based on comments in the forums.

martoq avatar Mar 28 '22 15:03 martoq

Correction this appears to have been an issue since '20.

https://community.home-assistant.io/t/entity-button-card-hold-action-doesnt-work-on-ios/162337

martoq avatar Mar 28 '22 15:03 martoq

Can confirm issue still exists.

ZoltrixGFC avatar Apr 09 '22 11:04 ZoltrixGFC

This is still happening on more recent versions of HASSIO as well.

image

Nxt3 avatar Dec 31 '22 14:12 Nxt3

As of HA Companion App IOS version 2023.7 (2023.471) running on HA core 2023.10.0, I can confirm this issue is still present. Accessing same instance via Chrome-browser on IOS hold_action works as expected (just like on macos Chrome).

I really like to use the companion app for its additional funcionality, but having to think about which app / browser to use for a specific requirment is cumbersome to say the least..

jperquin avatar Oct 12 '23 19:10 jperquin

Still an issue in 2024.

gregtakacs avatar Jan 30 '24 02:01 gregtakacs

If you open HA on a browser (eg safari in iOS) does the hold work?

bgoncal avatar Jan 30 '24 08:01 bgoncal

So my primary mobile is an Android and I only casually use iOS but now that I played with it a bit more the issue seems to be finger placement. With my iPhone if my finger moves even just a tiny smidge while holding, the blue highlight indicating "hold" just goes away and the hold action doesn't activate.

If I have the blue circle on the screen while releasing, the hold action works, but it's much harder to keep my finger steady than it is on Android.

The behavior is the same on both Chrome and in the companion app.

gregtakacs avatar Jan 30 '24 14:01 gregtakacs

So my question was because if it also happens in the mobile browser this means we can't probably fix on the App side so you should report to frontend

bgoncal avatar Jan 30 '24 14:01 bgoncal

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.

niobos avatar Jan 30 '24 15:01 niobos

In this case can you open an issue for Frontend? The issue is not something the companion app can fix

bgoncal avatar Jan 31 '24 16:01 bgoncal

Cross-linking to https://github.com/home-assistant/frontend/issues/18474

niobos avatar Jan 31 '24 16:01 niobos

Thanks, I will be closing the issue on iOS repo since the problem happens on the frontend (as tested in Safari), feel free to reopen if needed.

bgoncal avatar Jan 31 '24 16:01 bgoncal