Re: How to prevent app activation on NSUserNotification action
Re: How to prevent app activation on NSUserNotification action
- Subject: Re: How to prevent app activation on NSUserNotification action
- From: Jens Alfke <email@hidden>
- Date: Thu, 26 Feb 2015 18:33:48 -0800
> On Feb 26, 2015, at 6:11 PM, Alex Kac <email@hidden> wrote:
>
> If my app is currently hidden and a user notification occurs and the user taps on the action button (in my case "Snooze"); how do I prevent the app from coming to the foreground?
I don’t think you can. Activating the app when the user clicks the notification is just part of how the notifications UI works. The notification isn’t even being displayed by your app (there’s some system process that manages them).
—Jens
_______________________________________________
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