我想从来电中获取号码,以便我可以设置个人号码的首选项。例如,我希望我的手机只有在我妈妈打电话时才响铃,否则让它保持振动模式。
有没有办法在呼叫状态更改时获取号码?
It is not possible to implement this functionality at the moment. Apple do not provide access to the phone call. If there is an incoming call, your app goes to background. If you want to make a call from the app - you can do it with a URL and your app again goes to background.