...
The Ice run time creates an NSAutoReleasePool
object before dispatching server-side invocations and client-side AMI callbacks. The pool is released once the dispatch is complete.
Ztop |
---|
Support for background applications
IceTouch supports VoIP applications as documented in Executing Code in the Background.
Follow these steps to ensure your application is correctly configured:
- Add the
voip
flag to theUIBackgroundModes
key of your application'sInfo.plist
.
- Set the configuration property
Ice.Voip
to1
in your communicator configuration properties. As described in the Configuring Sockets for VoIP Usage, this causes the Ice run time to set thekCFStreamNetworkServiceType
property tokCFStreamNetworkServiceTypeVoIP
for all sockets.
- Before moving your application to the background, call the
setKeepAliveTimeout:handler:
method to specify the frequency at which your application must be woken to maintain your service.
The sample application demo/iPhone/voip
provides a demonstration of these steps.
Ztop |
---|
Targeting iOS >= 5.1.1
Xcode 5.1 targets iOS 7.1 by default. To build your application for an iOS >= 5.1.1 target, you will need to modify your Xcode project as follows:
...