Hi,
I'm quite new to Xamarin development and I'm working on kind of VoIP application based on a IAX2 DLL. The DLL uses System.Net.Sockets.UdpClient in order to send/receive audio data. Everything is fine on Android. For iOS everything is fine when the application is on foreground.
Now, I'd like to play audio in background. In order to do that, I registered the iOS application as an audio/voip application in the Info.plist file. Once this is done, according to the Apple's documentation (http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/AdvancedAppTricks/AdvancedAppTricks.html#//apple_ref/doc/uid/TP40007072-CH7-SW12) I need to register my socket as a voip one. This way, I would be able to be awaken by the OS when there is data received on that socket. Being awaken would allow me to play audio. Am I wrong ?
If I'm on the good way, my troubles start here: I can't figure out how to tell the OS that the VoIP socket is the one from the UdpClient. Any idea on the way to do it ? If it's possible, which callback do I need to implement ?
Thanks for your help and feel free to ask more details if my explanations are not clear.
Cheers, Maxime