Phuong
(Phuong Pham)
December 17, 2017, 7:44pm
1
Hi
I’m currently using webview on my sitemap.
I’m using this for different webcam. The problem only occour in the IOS app. Works fine thru android or browser.
My sitemap is:
Webview url=“http://192.168.x.xx:8080/video.mjpg?oid=1 ” height=6
Webview url=“http://192.168.x.xx:8080/video.mjpg?oid=2 ” height=6
Webview url=“http://192.168.x.xx:8080/video.mjpg?oid=3 ” height=6
Webview url=“http://192.168.x.xx:8080/video.mjpg?oid=4 ” height=6
Webview url=“http://192.168.x.xx:8080/video.mjpg?oid=5 ” height=6
Webview url=“http://192.168.x.xx:8080/video.mjpg?oid=6 ” height=6
Webview url=“http://192.168.x.xx:8080/video.mjpg?oid=7 ” height=6
It seems like it’s limit how many webview row you can have.
As you see the site map the webview display the first 4 and the repeat the first 3.
To clearify more it display follow:
oid=1
oid=2
oid=3
oid=4
oid=1
oid=2
oid=3
Webview is basically broken on the iOS app, unfortunately. I gave up and use mobile safari with client side authentication.
FrankR
(Frank Rein)
June 2, 2019, 5:53pm
3
Any news here?
My sitemap with
Webview url="http://<cam-ip>:<port>/videostream.cgi?user=<username>&pwd=<password>&resolution=32&rate=0" height=15 label="Cam 3"
works with my iphone app and also Safari (ios), Firefox (win 10), Chrome (win 10) while it instantly crashes the ios app on ipad. Does anybody know a solution?
1 Like
timbms
(Tim M-S)
June 28, 2019, 5:49am
4
Please try beta ios app
Webview was reworked there
2 Likes
FrankR
(Frank Rein)
June 28, 2019, 3:25pm
5
New testers are not accepted
1 Like
timbms
(Tim M-S)
July 2, 2019, 6:54pm
6
Everybody can be a beta tester. There are no limitations. At least there should not be one.
Install the TestFlight app and then follow link on openhab-ios GitHub page
1 Like
FrankR
(Frank Rein)
July 13, 2019, 4:31pm
7
Managed to install openhab app within TestFlight but there’s no difference. Webview is also not working
rossko57
(Rossko57)
July 13, 2019, 4:36pm
8
“not working” or crashing the app?
matt1
(Skinah)
July 14, 2019, 12:30am
9
Edit:
If I understand you correctly yes it sounds like a bug or it may be a iOS limit in the way openhab uses the apple framework. It would be good to work out if it is a bug before working around it and doing the following…
Then why don’t you do it with a single webview like this example I wrote just for you Second time I have had to answer this week…
I am hoping to write a few of these HowTo’s as I am finding out what works in one app does not work so well in another (android), I hope these save everyone needing to do the trial and error.
Credit for this goes to this article https://github.com/openhab/openhab1-addons/wiki/Foscam-IP-Cameras but I thought it would be better placed in this forum where people can comment and post different examples.
Overview and background of method:
We will create a number of HTML files, one that shows all c…
Phuong
(Phuong Pham)
July 14, 2019, 8:01am
10
Hi
Don’t know if you answer was to me or @FrankR ?
But anyway this issue is working fine on the beta version
weakfl
(Weakfl)
July 14, 2019, 10:04am
11
Multiple Webviews with height=15
are working fine for me on iPad with the latest build, at least on the simulator.
@FrankR If you’re still having problems, please create an issue in the github repo and provide more details, thanks.
FrankR
(Frank Rein)
July 14, 2019, 12:24pm
12
The Webview is not working within beta ios app if you are not connected to your local URL
Phuong
(Phuong Pham)
July 14, 2019, 12:30pm
14
Are you trying to do this from your “LAN” or from external internet connection (connect thru myopenhab )
weakfl
(Weakfl)
July 14, 2019, 1:05pm
15
Just tried it, works with remote URL for me.
FrankR
(Frank Rein)
July 14, 2019, 1:26pm
16
I am connecting thru myopenhab
Phuong
(Phuong Pham)
July 14, 2019, 2:24pm
17
I see.
As I understand this is not supported.
myopenHab only support items that’s is available thru REST API only.
Can someone possibly share the correct url address for viewing the weather html layout remotely when outside your home in a sitemap?
This works locally in the home:
Webview url="http://192.168.xx.xx:8080/weather?locationId=home&layout=example&iconset=colorful" height=10
And I tried changing to https://myopenhab.org/weather … but that did not seem to work.
Do I need to actually use a DNS and open up port 8080? But that would lead to some security concerns and open access to pretty much anyone…
FrankR
(Frank Rein)
July 14, 2019, 3:34pm
18
Not here. Neither within iphone 8 nor with ipad, neither with normal app nor with beta. Are you sure you are not connected to the local URL? Did you see this one:
weakfl
(Weakfl)
July 14, 2019, 3:56pm
19
Absolutely. I tried in the Xcode simulator and had to change the local URL to a non working one to force remote connection.
Do you get any output or just blank space?
weakfl
(Weakfl)
July 14, 2019, 5:58pm
21
Sorry, I was writing from my phone, as I’m not at home anymore, and missed that one.
If this is indeed a local URL it will of course not work.
@FrankR if that’s the case you’ll either have to use VPN or use a public URL for your cam.