簡體   English   中英

linphone-iphone在background-mod中無法收到來電?

[英]linphone-iphone in background-mod can't get an incoming call?

我在iOS應用中使用linphone SDK。

當應用程序進入后台模式時,應用程序有時可能會收到來電或推送通知消息,有時則不會。

或者,如果該應用在幾分鍾前處於后台模式,則無法接到來電。

請幫幫我。

我使用ipad在后台模式下的iPhone中呼叫。

ipad的日志:

linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats

當我讓手機到達前台時可以撥打。

linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Garbage collecting unowned object of type LinphoneCallStats
linphone[2767:1066909] [Message] Background task belle-sip recv channel started. Unknown remaining time since application is not fully in background.
linphone[2767:1066909] [Message] channel [0x10eb70000]: starting recv background task with id=[94].
linphone[2767:1066909] [Message] channel [0x10eb70000]: received [437] new bytes from [TLS://sip.linphone.org:5223]:
linphone[2767:1066909] [Message]    SIP/2.0 180 Ringing
linphone[2767:1066909] [Message]    Via: SIP/2.0/TLS 192.168.1.232:58394;received=220.134.182.243;branch=z9hG4bK.5fJXlLPwC;rport=58394
linphone[2767:1066909] [Message]    Record-Route: <sips:37.59.51.72:5223;lr>

處於后台模式的iOS APP可能已暫停。 您可以使用PushKit,在向APP進行VoIP呼叫之前向APP發送通知。 關於PushKit,您可以訪問https://developer.apple.com/documentation/pushkit祝您好運!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM