5

I need to find if user dismissed the notification by clearing from lock screen or closing on notification bar. Is there a way to detect it or any handler that would trigger after dismiss?

Anas Sabir
  • 134
  • 10
  • Its not possible in iOS to detect whether a notification is getting dismissed in Notification Center. – Puneet Sharma Aug 01 '17 at 05:14
  • Its not possible – Rahul Khurana Aug 01 '17 at 05:17
  • 2
    Possible of Duplicate: https://stackoverflow.com/questions/31929274/know-if-ios-notification-was-dismiss https://stackoverflow.com/questions/29096282/what-method-is-triggered-when-local-notification-is-dismissed-from-notification https://stackoverflow.com/questions/30153519/how-to-listen-for-notification-dismissed-event-in-ios – Ahmad F Aug 01 '17 at 06:17
  • Thanks. And is there a way to hide this clear button on lock screen in iOS 10 ? – Anas Sabir Aug 01 '17 at 06:35

1 Answers1

1

I have extensively looked into it and there's no exact way to tell as the notification centre lies outside of app sandbox and apple sends no notification either.

So it's not possible up until now

Amogam
  • 321
  • 5
  • 20