Hi all.
I'm working on a project where i need to make a rather custom frontend. I have found a way to do this with custom:button-card, and i looks great. However i cant get the interaction to work on the android app. it works flawlessly on web.
I have cooked it down to this example:
type: custom:button-card
name: "Debug Menu"
tap_action:
action: none
styles:
card:
- padding: 10px
custom_fields:
debug_button:
- pointer-events: auto
- width: 100%
custom_fields:
debug_button: >
[[[
return <div style="background: #d32f2f; color: white; padding: 25px; border-radius: 8px; font-weight: bold; text-align: center; cursor: pointer;" onclick="const ev = new Event('hass-more-info', { bubbles: true, composed: true }); ev.detail = { entityId: 'sun.sun', view: 'info' }; this.dispatchEvent(ev); event.stopPropagation();"> CLICK HERE TO TEST MOBILE INTERACTION </div>;
]]]
Can anyone point me in the right direction? or does this simply not work on android?.