问题
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