创建一个移动应用程序,监听到电话呼叫到来事件 [英] Create a mobile app that listens to incoming phone call events

查看:180
本文介绍了创建一个移动应用程序,监听到电话呼叫到来事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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的和<一href="http://www.blackberry.com/developers/docs/6.0.0api/net/rim/blackberry/api/phone/PhoneListener.html"相对=nofollow>黑莓做的。

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...

对不起,没有帮助有!

这篇关于创建一个移动应用程序,监听到电话呼叫到来事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆