-
Notifications
You must be signed in to change notification settings - Fork 13
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
Listener and Refresh problem with Safari and Chrome #2
Comments
Hi, I just tested the library with Safari 10.0.2 (12602.3.12.0.1) on macOS Sierra (10.12.2) and things worked without any issues for me. I also use the latest version of Chrome myself without any issues. The following information would help with troubleshooting this issue:
There is also a known ESH issue about newly added items not properly updating. So restarting openHAB is necessary when you have just added the library examples to an already running openHAB instance. |
Thanks for the fast reply, it seems that in safari it was the issue you wrote ESH issue, after restart it worked fine. In chrome the update didn't work, but after i tested some other items, it seems thats a problem with the basic ui itself, so no issue with your code. I just have a problem in the open hab iOS App, there i get an basic auth error, but could also be an issue with the iOS App itself. |
Does the webview work in the iOS app when you use a hardcoded Grafana URL and not a page using the library? If that also does not work it will probably be an issue in the app itself. Perhaps you are having the same issue that is reported in: openhab/openhab-ios#84 The Android App also has issues with Webviews. I just use Basic UI on my smartphone because everything I need just works with it. |
With Chrome 55 the Basic UI does not work too on Android. With the current beta of Chrome (Version 56) it works again. The control used in HABdroid is based on the same browser engine, that is at least one reason why it doesn't work in the app. |
I just had another try on getting the library to work with the openHAB Android App and this time I had more luck. I had to do the following to get it working:
The same approach may also get it to work with the iOS App. |
With some code adjustments in the Android App I now even got the the full Grafana Javascript views working. It seems that the default Android WebView is pretty restricted and not HTML5 compliant. This causes issues with AngularJS used by Grafana. This is the Android code which resolved it form me: http://stackoverflow.com/a/10599794 I'll see if a PR with these gets merged into the Android App. :-) |
I've submitted PR openhab/openhab-android#266 for making the Android App WebView compatible with Grafana Javascript panels. |
The PR got approved and is part of the openHAB Android App v1.8.0.6 that has been on Google Play for some time now. With the configuration changes mentioned above it loads Grafana Javascript panels just fine. When there are still issues in the iOS App I think it is best to enter an issue for this in the openHAB iOS App issue tracker. I'm not able to test this on iOS myself. |
Hello,
first I want to thank you for this really good piece of code. I want to use it in my open hab environment, but there is a problem with my browsers.
On the safari browser the buttons didn't work, i tried the examples with the combo fields. If i press the buttons for Panel and the timeline, nothing happens, no message of the change is sent to Openhab. If i try the same sitemap with Chrome the button press is sent to open hab immediately.
On chrome browser the buttons work, but the chart didn't reload, this works on safari, so if i push the button on chrome, the change works on the safari browser, if i have the same site open in both browsers.
The text was updated successfully, but these errors were encountered: