Can an iPhone app be opened when the iPhone rings or change it's state when the iPhone rings?

StackOverflow https://stackoverflow.com/questions/23421357

  •  13-07-2023
  •  | 
  •  

문제

I am detailing a few potential iPhone apps and wanted to know if it's possible to trigger an app (open the app) when the iPhone rings? Also, if your app is already open, can your app state be changed (change anything within the opened app) based on the iPhone ringing?

Any help on this would be appreciated.

도움이 되었습니까?

해결책

You can use Core Telephony Framework to detect a call but for that your app needs to be in the foreground.

But launching an app when you get a call won't be possible with the iOS SDK.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top