Getting notification when Facetime call comes in
Getting notification when Facetime call comes in
- Subject: Getting notification when Facetime call comes in
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Mon, 23 Aug 2021 22:30:23 +0200
In my macOS app, I'd like to get notified if and when a FaceTime call comes in.
I thought I could get these notifications with code like this:
- (void) applicationDidFinishLaunching: (NSNotification *) aNotification
{
NSNotificationCenter *nc = [[NSWorkspace sharedWorkspace]
notificationCenter];
[nc addObserver: self
selector: @selector(interrupt:)
name: AVAudioSessionInterruptionNotification object: NULL];
...
}
- (void) interrupt: (NSNotification*) notification
{
...
}
I can get a NSWorkspaceWillSleepNotification (which I am also interested in),
but I don't get the AVAudioSessionInterruptionNotification.
My app doesn't do any sounds rendering, though. (just the occasional NSBeep).
Is there any way I can get that notification in case of incoming Facetime call?
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden