开发者

iOS - Possible for Safari HTML5 Web Sockets to Communicate with App on Same Device?

开发者 https://www.devze.com 2023-04-12 01:16 出处:网络
Is it possible to use html5 web sockets in mobile safari to communicate with another app on the same device?Basically, I\'d like to build a socket server in a custom app and have my javascript on a pa

Is it possible to use html5 web sockets in mobile safari to communicate with another app on the same device? Basically, I'd like to build a socket server in a custom app and have my javascript on a page in mobile safari send messages to it via html web sockets. I have very little experience wi开发者_C百科th sockets and just thought I'd throw this idea out there.


No -- there is no background mode which will allow a native iOS application to "legally" keep a socket server running. The only three modes which can fully run in the background are "audio", "VoIP", and "location", and your application probably wouldn't fall into any of these categories.

0

精彩评论

暂无评论...
验证码 换一张
取 消