• 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: Alex Kac <email@hidden>
  • Date: Thu, 26 Feb 2015 19:43:48 -0700

Yes, I understand how notifications work. Since Apple’s calendar and Reminder apps don’t launch when you hit snooze, I was hoping to do the same for us. My guess was that their notifications were being created by a background process so when you hit snooze, its not calling the actual Reminders/Calendars app - but I wanted to be sure.

> On Feb 26, 2015, at 7:33 PM, Jens Alfke <email@hidden> wrote:
>
>
>> On Feb 26, 2015, at 6:11 PM, Alex Kac <email@hidden <mailto: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

Alex Kac - President and Founder
Web Information Solutions, Inc.

"I am not young enough to know everything."
--Oscar Wilde




_______________________________________________

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


References: 
 >How to prevent app activation on NSUserNotification action (From: Alex Kac <email@hidden>)
 >Re: How to prevent app activation on NSUserNotification action (From: Jens Alfke <email@hidden>)

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