iOS - Possible for Safari HTML5 Web Sockets to Communicate with App on Same Device?
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.
精彩评论