He can, but with the main reservations:
- First, the system will unregister the Bonjour names that you may have installed.
- Secondly, if you are attached to WWAN, it will go down even with you, listening to it (this is true even in the foreground).
- Thirdly, if your application does not do anything else in the background (i.e. is not registered to provide background music, location events or telephony), you should still complete the work within the deadline for completing the background task or stop working.
So, although you can bind and listen on a socket in the background, for almost all practical purposes, this is not worth doing, and you should rethink your design.
source share