Is it possible to have the App auto login when using webview to launch a lovelace view?
automation:
alias: Open android webview
trigger:
…
action:
service: notify.mobile_app_<your_device_id_here>
data:
message: “command_webview”
title: “/lovelace/settings”
What do you mean auto login? You should already be logged in.
Once the app launches if the phone screen is on (awake), it requires app authentication (pin/password), if the phone screen is off, nothing happens until you interact with the phone.
so you want to bypass the lock mechanism that you enabled when the webview is open?
Yes if possible, wake the phone (turn screen on), launch app and display the view based on the automation action/title.
Ok feel free to submit a feature request on GitHub
1 Like
Summited, is the decryption good enough?
opened 08:43PM - 25 Mar 22 UTC
enhancement
<!-- READ THIS FIRST:
- Make sure you've checked existing feature requests to m… ake sure you aren't opening a duplicate. If you do open a duplicate issue because you didn't check existing requests, we will have some work for nothing. Putting this work into more features (maybe even yours!) just feels better.
DO NOT DELETE ANY TEXT from this template! All requested information is important.
-->
**Is your feature request related to a problem? Please describe.**
No.
**Describe the solution you'd like**
If possible, wake the phone (turn screen on), launch app, auto login, and display the view based on the automation action/title.
RE: https://community.home-assistant.io/t/webview-auto-login/405367
**Describe alternatives you've considered, if any**
I don't know of an alternative.
**Additional context**
i responded with the specifics of the request
1 Like
So I would specify two actions?
Is message required or platform/integration specific?
automation:
- alias: Open android webview
trigger:
...
action:
- service: notify.mobile_app_<your_device_id_here>
data:
title: "Wake up!"
- service: notify.mobile_app_<your_device_id_here>
data:
message: "command_webview"
title: "/lovelace/settings"
correct
Coolie1101:
Is message required
always, for any notify
platform
also first service call is incorrect, follow this example: Notification Commands | Home Assistant Companion Docs but keep in mind you do not need to use title
if you do not wish for the screen to remain on.
Thanks, took that from Critical notifications | Home Assistant Companion Docs , just getting into fully utilizing the abilities of the app.
So “command_screen_on” works, but an oversite to the initial quarry, the phone lock screen .
the actual phone lock screen we wont bypass…I thought you had enabled the lock app setting in the companion app configuration
I don’t mind disabling the app lock, which will all assist in the auto launch and view, but I would not like to leave the phone unlocked (no pin/password)
I agree, the reason why the app will not remove the lock screen is because it requires the app to become a device administrator. Then imagine you are relying on the app to relock the devcie but the app crashed leaving your device unlocked. For reasons like that we felt it was not a good permission for us to go after.
I concur. I guess it’s back to the drawing board .