linphone-iphone in 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
当我让phone到前台就可以拨号了。
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
祝你好运!
我在 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
当我让phone到前台就可以拨号了。
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 祝你好运!