Can my iPhone app host a Local Web server and allow other apps to the phone to access the LWS?

1.2k Views Asked by At

I will use one of the following cocoahttpserver or iPhoneHTTPServer3, SimpleWebSocketServer, MultithreadedHTTPServer3 to host a server in my app.

Iam aware that a built-in apache is not possible..

Can other apps in the phone make http request to this server hosted locally.

Thanks, --srihari

1

There are 1 best solutions below

0
Chen Zhuo On

Yes, it can be done in a wired way. Cause apple doesn't allow app runing in background offically, however there's one exception that playing music in background is allowed, so you can keep your app running in background with playing a mp3 infinitely. However this is only a workaround, it would consume all your battery quickly.