创建一个移动应用程序,监听到电话呼叫到来事件创建一个、应用程序、事件、电话

2023-09-07 17:00:05 作者:妆出来の纯、

正如标题所暗示的,我想创建一个在后台运行,并抓住来电事件的移动应用程序。而且我想用一个跨平台开发工具做到这一点。

As the title suggests, I would like to create a mobile app that runs in the background and catches "incoming call" events. Moreover I would like to use a Cross-Platform Development Tool to do this.

我看着三个工具:的PhoneGap ,的 Rhomobile的和 Appcelerator的。但我找不到任何文档或建议他们支持这样的事件的例子。

I looked at three tools: PhoneGap, Rhomobile and Appcelerator. But I couldn't find any documentation or examples that suggest they support such events.

这似乎是iPhone(纠正我,如果我错了)不支持这一点,但的 Android的和黑莓做的。

It seems like the iPhone (correct me if I'm wrong) does not support this but Android and Blackberry do.

我错过了什么,当我看着上面提到的工具和平台? 是否有任何其他完善的跨平台移动工具,可以解决我的问题? 同时考虑到跨平台的支持,你将遵循什么样的方法来开发这样的应用程序?

Did I miss something when I looked at the above mentioned tools and platforms? Are there any other well established Cross-Platform Mobile Tools that could solve my problem? Keeping the cross-platform support in mind, what approach would you follow to develop such an app?

推荐答案

在iPhone上,没有什么可以做,以抓,甚至注册来电什么。你可以做的唯一的事情就是创建一个应用程序,协议,在它被发送到后台或成为不活动的时候,因为找你的appDelegate将通知 - 但会发生在许多场合,不仅当一个电话被接收。这是行不通的,而应用程序在后台运行(在多任务处理功能的设备)产品总数。因此,像这样的应用程序将是完全无用......

On the iPhone, there's nothing you can do to "catch" or even register incoming calls. The only thing you could do is create an app that protocols the time at which it has been sent to the background or became inactive, because you'r appdelegate will be notified - but that will happen on many occasions, not only when a phone call is received. It won't work while the app is in the background (on multitasking enabled devices) alltogether. So, an app like this would be totally useless...

对不起,没有帮助有!