如何使用 ios5 使用电话框架获取呼叫连接时间?
我想捕获来电和去电的时间戳。我读到,使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以
通过 此链接查看此链接通话详细信息将获得通话日期和通话持续时间。在核心电话的帮助下,您可以检测呼叫的来电状态。当您接到来电时生成时间戳。
我想这可能对你有帮助。
快乐编码...
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...
此方法在 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