当在标准 iphone 应用程序中接到电话时,从后台唤醒 Voip 应用程序
Wake up the Voip app from background , when a call received in standard iphone application
我的要求是"I need to wake up my application from the background when a call comes in my iPhone"。有什么办法吗?我们可以为
中的每个用户获取一个唯一编号吗
VoIP 推送通知是您的解决方案。
我自己不喜欢 "link" 的回答,但这是如何做到的:
Voice Over IP (VoIP) Best Practices (Apple documentation)
粗略地说,VoIP 推送允许您唤醒您的应用程序并执行您的代码。
如果您正在开发软phone应用程序,您可能还对CallKit感兴趣。
您需要使用 PushKit notifications and CallKit 即使应用程序被终止也可以启动该应用程序。
CallKit 并不是绝对必要的,因为它"just" 允许您提供标准的调用接口。但这是一个非常好的功能 - 用户习惯于 answering/declining 调用的标准 iOS 界面,所以我肯定会建议使用 CallKit,而不仅仅是标准通知。
你可以看看this tutorial,或者只是google PushKit、CallKit 和 Voip 一起获得其他相关教程。
我的要求是"I need to wake up my application from the background when a call comes in my iPhone"。有什么办法吗?我们可以为
中的每个用户获取一个唯一编号吗VoIP 推送通知是您的解决方案。
我自己不喜欢 "link" 的回答,但这是如何做到的:
Voice Over IP (VoIP) Best Practices (Apple documentation)
粗略地说,VoIP 推送允许您唤醒您的应用程序并执行您的代码。
如果您正在开发软phone应用程序,您可能还对CallKit感兴趣。
您需要使用 PushKit notifications and CallKit 即使应用程序被终止也可以启动该应用程序。
CallKit 并不是绝对必要的,因为它"just" 允许您提供标准的调用接口。但这是一个非常好的功能 - 用户习惯于 answering/declining 调用的标准 iOS 界面,所以我肯定会建议使用 CallKit,而不仅仅是标准通知。
你可以看看this tutorial,或者只是google PushKit、CallKit 和 Voip 一起获得其他相关教程。