Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map dpad down key to tab key in webviews #1358

Merged
merged 1 commit into from Feb 12, 2021

Conversation

dshokouhi
Copy link
Member

Summary

The purpose of this change is to map the DPAD_DOWN key which is commonly found on remote controls to the TAB key. This will allow users to login to the HA app using the remote control. This is an unsupported experience and therefore we will not be publishing for Android TV. This is for sideloading only and we will not be doing any support here as we are only sending the TAB key. Both the android app and HA frontend are not optimized for the TV experience however, there are some users who just want to sideload the app and use it in its current form. At least with this change a user can do some VERY basic navigation (only one direction forward). Users should not expect bugs to be fixed until someone comes and adds support for DPAD keys in the front end (if that were to be accepted).

We will remove this workaround once someone spends the time to develop this feature there and its accepted. Until then the TAB key it will be.

This mapping only takes place in our authentication fragment and the webview. In all other screens the remote will function as normal. It will be a nuisance for anyone who wants to use this feature however it is there for those who absolutely need it.

Notifications will not work on Android TV as the app needs to support that feature and normal FCM messages are received but cannot be displayed. Widgets also are not supported. Some or most sensors should work.

So to reiterate this is an unsupported experience and users should not expect bugs to be fixed by the app as the frontend needs to support it. The frontend may also decide not to support it so users will need to keep that into consideration. This is why the app is not being published for those devices.

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

@JBassett JBassett merged commit 91fcd5b into home-assistant:master Feb 12, 2021
@dshokouhi dshokouhi deleted the webview_dpaddown_tab branch February 12, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants