• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to prevent app activation on NSUserNotification action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to prevent app activation on NSUserNotification action
      • From: Alex Kac <email@hidden>
References: 
 >How to prevent app activation on NSUserNotification action (From: Alex Kac <email@hidden>)

  • Prev by Date: Exception on launch when clicking on an NSUserNotification
  • Next by Date: Re: Exception on launch when clicking on an NSUserNotification
  • Previous by thread: How to prevent app activation on NSUserNotification action
  • Next by thread: Re: How to prevent app activation on NSUserNotification action
  • Index(es):
    • Date
    • Thread