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

Removing tokens within the app #156

Closed
towerhand opened this issue Sep 27, 2018 · 9 comments
Closed

Removing tokens within the app #156

towerhand opened this issue Sep 27, 2018 · 9 comments

Comments

@towerhand
Copy link

In the profile when you click on the "trash can" icon to remove one of the refresh tokens, the confirmation pop up doesn't show up.

HA 0.79.0b2
iOS app 1.2.0 (35)

@towerhand towerhand changed the title Removing tokens from the app Removing tokens within the app Sep 27, 2018
@mnoorenberghe
Copy link
Contributor

Since that is the web UI within the app this should be moved to https://github.com/home-assistant/home-assistant-polymer/issues

@ghost
Copy link

ghost commented Oct 2, 2018

This issue was moved by mnoorenberghe to home-assistant/home-assistant-polymer#1722.

@ghost ghost closed this as completed Oct 2, 2018
@balloob
Copy link
Member

balloob commented Oct 2, 2018

Home Assistant currently uses confirm() to ask user for confirmation.

I am not 100% sure, but that seems like it triggers a signal for iOS?

https://webkitgtk.org/reference/webkit2gtk/1.8.0/WebKitWebView.html#WebKitWebView-script-confirm

(yes, we should build our own confirm)

@robbiet480
Copy link
Member

We need to implement webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:) for this to work.

@balloob Do we call alert() anywhere? If so, I should also implement webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)

@balloob
Copy link
Member

balloob commented Oct 8, 2018

yeah we do.

@robbiet480
Copy link
Member

@balloob Thanks

@blackgold9 we'll need to get this in on 1.5.0

@robbiet480
Copy link
Member

@balloob
Copy link
Member

balloob commented Oct 8, 2018

We use prompt for long lived access tokens.

@towerhand
Copy link
Author

Just a quick FYI, this issue wasn’t fixed for the 1.5.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants