hello, it is different since a webview in ios is a wrapper to UIWebView (which is now deprecated in ios 12 BTW).
I tried everything but i could not make it work on ios, I may have to try it again with a newer Qt version.... In the meantime nobody really tried and could proove that it works so I am a bit puzzled on this thing. if anybody could tell me it is working then ot would save me significant time Additionally I am wondering if this is not a security issue to open a socket, does it means others could access it? Best regards, Sylvain On Fri, 17 Aug 2018 at 19:11, Artem Sidyakin <artem.sidya...@qt.io> wrote: > Have you already tried WebView ( > http://doc.qt.io/qt-5/qml-qtwebview-webview.html) with WebChannel ( > http://doc.qt.io/qt-5/qml-qtwebchannel-webchannel.html) over WebSocket ( > https://doc.qt.io/qt-5/qml-qtwebsockets-websocketserver.html)? You > referred to your previous e-mail, but I haven’t seen it, sorry. > > I have a working example on desktop, but I haven’t tried it on iOS, > although I don’t see why it would be any different. Except if iOS doesn’t > allow to open a WebSocket. So if you were able to make it work on desktop > but failed on iOS, then I guess that’s the case. > > --- > Artem Sidyakin > > > On 11 Aug 2018, at 08:32, Sylvain Pointeau <sylvain.point...@gmail.com> > wrote: > > > > > > > > Le jeu. 7 avr. 2016 à 13:17, Sylvain Pointeau < > sylvain.point...@gmail.com> a écrit : > > > > > > On Thu, Apr 7, 2016 at 11:23 AM, Milian Wolff <milian.wo...@kdab.com> > wrote: > > On Thursday, April 7, 2016 9:38:01 AM CEST Sylvain Pointeau wrote: > > > Hello, > > > > > > Do you have any idea how to use WebSocket or WebChannel on iOS? > > > Should I conclude that we cannot do hybrid apps with Qt on iOS (works > on > > > desktop, don't know about Android)? > > > > I'm not an iOS person but the problem you are describing has nothing to > do > > with the webchannel - you seem to fail already when constructing a > websocket > > server. Have you tried to run the examples/tests of QWebSocket on iOS? > That's > > where I'd start. > > > > WebSocketServer works if the QML application creates the websocket and > connects to it. > > However it does not work if we connect from html as shown in my example > copied in my previous email. > > > > Best regards, > > Sylvain > > > > is there anyone that could use a webview on ios and communicate with it > in Qml? > > > > Best regards, > > Sylvain > > > > > > _______________________________________________ > > Interest mailing list > > Interest@qt-project.org > > http://lists.qt-project.org/mailman/listinfo/interest > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest