简体   繁体   English

iOS 根据来电显示通知

[英]iOS display notification based on incoming phone call

Is it possible to have a background app display a notification based on who is contact details from an incoming caller, either before the call is answered or during?是否可以让后台应用程序根据来电者的联系方式显示通知,无论是在接听电话之前还是在接听电话期间?

No, the system will not allow you to interact with phone calls in any way.不,系统不允许您以任何方式与电话进行交互。

You can set the image for certain people in the address book using the Address Book API.您可以使用通讯簿 API 为通讯簿中的某些人设置图像。 That way, a certain background image (potentially with a textual message) will be shown, based on who is calling.这样,将根据谁来电显示某个背景图像(可能带有文本消息)。

With time, things change.随着时间的推移,事情会发生变化。 Look at sync.me, when you get an incoming call, the latest post on facebook will show just above the accept/decline button.查看sync.me,当您接到来电时,facebook 上的最新帖子将显示在接受/拒绝按钮上方。 Though I still can't get the idea of how it is done.虽然我仍然无法理解它是如何完成的。

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

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