|
From: | Barbieri Davide |
Subject: | Re: [Linphone-developers] Cannot Receive Call in Background mode |
Date: | Thu, 18 Oct 2012 16:00:38 +0000 |
The key concept is maintaining the main thread of the application alive. Once you do that, every action is possible.
Davide Barbieri
From: linphone-developers-bounces+address@hidden
[mailto:linphone-developers-bounces+address@hidden On Behalf Of
Wei Eric
Thank you for your information.
I also found that LinPhone v1.3 does not tag app as VOIP service type in iOS according iOS official document, so when app runs in background mode, it cannot receive any call.
I guess if the Linphone must work normally, not only VOIP service type should be defined in source code, but also playing a short silence function needs to be added. Is it correct ?
Any better solution for this issue will be appreciated.
ref: uide/iPhoneAppProgrammingGuide.pdf
On Thu, Oct 18, 2012 at 6:04 PM, Barbieri Davide <address@hidden> wrote: Play a silent audio streams in silent mode is an optimal solution to maintain UDP socket alive in background. Create a parallel audio session and set property “mixwithothers” and launch play every few seconds with a timer.
Other method is logging GPS position but in this context Apple will not permit you if it’s not necessary.
Davide Barbieri
From: linphone-developers-bounces+d.barbieri=address@hidden
[mailto:linphone-developers-bounces+d.barbieri=address@hidden]
On Behalf Of Wei Eric
Dear Cheers,
Thank you for your reply. What if UDP is a must, is there any solution for this ?
I found some possible solutions shown as follows. 1. Client periodically registers to SIP Proxy within 3 mins. 2. Play audio streams when an app runs in background mode.
Any comments for this ?
Eric.W
On Wed, Oct 17, 2012 at 11:13 PM, Dario Fiumicello <address@hidden> wrote: Il 17/10/2012 16:06, Wei Eric ha scritto:
Hi, in iOS, as far as I know, UDP sockets are closed when phone goes to background. If you want to receive calls in background you should use SIP over TCP.
-- The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. |
[Prev in Thread] | Current Thread | [Next in Thread] |