Create a mobile app that listens to incoming phone call events

﹥>﹥吖頭↗ 提交于 2019-12-20 02:55:24

问题


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.

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

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?


回答1:


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

Sorry, no help there!



来源:https://stackoverflow.com/questions/3573859/create-a-mobile-app-that-listens-to-incoming-phone-call-events

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!