在iOS9中不推荐使用setKeepAliveTimeout

chr*_*cap 9 voip registration sip keep-alive ios9

-setKeepAliveTimeout:handler:不推荐使用的iOS9状态的当前API更改.

到目前为止,这是iOS上的VoIP SIP应用程序可以维持其与SIP服务器的注册的唯一方式.

这种技术被LinPhone等其他应用程序使用.

有没有人对Apple提出的替代方案有所了解?或者,从(后)iOS9开始,SIP是否会瘫痪?

请参阅:https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/occ/instm/UIApplication/setKeepAliveTimeout : handler:

http://www.linphone.org/docs/liblinphone/group__IOS.html

Dro*_*ppy 0

Apple 在您链接的页面中记录了替代方案:

讨论

在 iOS 8 及更高版本中,IP 语音 (VoIP) 应用程序会注册UIRemoteNotificationTypeVoIP远程通知,而不是使用此方法。

  • UIRemoteNotificationTypeVoIP 允许外部触发器唤醒 voip 应用程序。不包括SIP客户端需要主动向SIP服务器重新注册的情况。 (3认同)