简体   繁体   中英

How can I make an iPhone app that responds to the OnRing event?

I want to write a iPhone application, it needs to react to the onRing event (or whenever someone calls, regardless of their ring/vibrate settings).

Is this possible? Would my application have to be running all the time or can it just run during a ring? (it is a light application, not sure how long it will take to load up though).

I basically want to react to a ring, and then determine whether to ring or vibrate.

除非您拥有越狱的手机,否则这是不可能的。

If your application is currently running when the call comes in, you'll receive the notification UIApplicationWillResignActiveNotification indicating that the app will go offscreen and be replaced by the call screen.

I think that's the only way you can do it without a jailbroken phone, though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM