How to determine the completion status of incoming and outgoing calls? iphone

I have a requirement that the application should disappear after installation and when an incoming or outgoing call, shortly after the call, the application should request and display a screen.

How to disappear the application after installation?

How to determine the incoming and outgoing call?

How to display screen after end of incoming and outgoing call?

The main thing that I do this for a personal non-app store. Therefore, please, if you have any ideas, then give a full proposal and ideas.

Thanks in advance...

+4
source share
1 answer

Use the following notification to find call status. Add CoreTelephony.framework

#import <CoreTelephony/CTCall.h> [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callReceived:) name:CTCallStateIncoming object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callEnded:) name:CTCallStateDisconnected object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callConnected:) name:CTCallStateConnected object:nil]; 
+2
source

Source: https://habr.com/ru/post/1401126/