如何使用 ios5 使用电话框架获取呼叫连接时间?

发布于 2025-01-05 17:37:05 字数 405 浏览 1 评论 0原文

我想捕获来电和去电的时间戳。我读到,使用 CoreTelephony 框架可以实现这一点。我已经尝试过此处给出的代码 使用 coretelephony 捕获传入的 Callevent? 。我已将代码放置在 applicationwillresignActive 方法中。我已经通过在我的应用程序位于前台时发出呼叫来运行测试,但我没有在日志中收到任何消息。事件处理程序是即使调用事件发生时代码也不会执行。我没有明白我错在哪里?

提前致谢

Pushpa

I want to capture the timestamp of incoming call and out going call. I read that, this could be possible using CoreTelephony Framework. I have tried the code given here Capture incoming Callevent using coretelephony? . I had placed code inside the applicationwillresignActive method. I have run the test by giving the call while my application in the foreground, but i am not getting any messages in the log. Event handler is code is not executing even when the call event happens. I am not getting where i am wrong?

Thanks in advance

Pushpa

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

极致的悲 2025-01-12 17:37:05

您可以

通过 此链接查看此链接通话详细信息将获得通话日期和通话持续时间。在核心电话的帮助下,您可以检测呼叫的来电状态。当您接到来电时生成时间戳。

我想这可能对你有帮助。

快乐编码...

you can see this link call details

From this u will get date of call and duration of call. And with the help of Core telephony u can detect call's incoming state. When u get a incoming call then generate a time stamp.

I think it may be help you.

Happy coding...

幽梦紫曦~ 2025-01-12 17:37:05

此方法在 iOS5+ 中不再适用。有新方法吗?这个应用程序似乎可以运行

https://itunes. apple.com/ca/app/navita-tem-personal/id590228620?mt=8

This method no longer works in iOS5+. Is there a new method? This app seems to have it working

https://itunes.apple.com/ca/app/navita-t.e.m.-personal/id590228620?mt=8

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文