简体   繁体   English

swift 3 中的 VoIP 集成

[英]Voip integration in swift 3

Can we integrate VoIP services through the new framework CallKit without using any server services or push notification?我们可以在不使用任何服务器服务或推送通知的情况下通过新框架CallKit集成VoIP服务吗?

I am really new to this concept, also checked the speaker box app as a sample app but didn't get much idea how it would be working.我对这个概念真的很陌生,还检查了扬声器盒应用程序作为示例应用程序,但不太了解它是如何工作的。

Please, share your feedback if anyone has integrated CallKit .如果有人集成了CallKit ,请分享您的反馈。

Thanks谢谢

The CallKit framework provides programmatic access to VoIP functionality, as well as call blocking and identification. CallKit框架提供对 VoIP 功能的编程访问,以及呼叫阻止和识别。 Apps can use CallKit to receive incoming calls and make outgoing calls using the native phone UI.应用程序可以使用 CallKit 接听来电,并使用本机电话 UI 拨打电话。

Reference for call kit .呼叫套件参考

Can we integrate VoIP services through new framework call kit without using any server services or push notification?我们可以在不使用任何服务器服务或推送通知的情况下通过新的框架调用工具集成 VoIP 服务吗?

No we can't use it .不,我们不能使用它 You will need third parties like Twilio , Plivo , or ICELink and create your own server.您将需要TwilioPlivoICELinkICELink并创建您自己的服务器。 Then provide CallKit the data required, it will handle the call and UI stuff.然后向CallKit提供CallKit的数据,它将处理调用和 UI 内容。 You can read the apple docs for more ideas.您可以阅读苹果文档以获取更多想法。

If a CallKit app only intends to make outgoing calls, then it may be possible to not have a server component.如果 CallKit 应用程序仅打算拨打电话,则可能没有服务器组件。 But if the app intends to receive incoming calls while the app may not be running (eg when it is suspended), those incoming calls must be signaled via Push Notification, and those push notifications are typically sent by a backing server.但是,如果应用程序打算在应用程序可能未运行时(例如,当它暂停时)接收来电,则必须通过推送通知来通知这些来电,并且这些推送通知通常由后备服务器发送。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM