I am listneing to actions pressed for my local notifications, but is there a way to determine when the user dismisses a notification?
Here is how I'm listening to my actions in my AppDelegate, but the dismiss doesn't fire this:
func application(application: UIApplication, handleActionWithIdentifier identifier: String?, forLocalNotification notification: UILocalNotification, completionHandler: () -> Void) {
var actionName: String? = nil
if let identifier = identifier {
switch identifier {
case "snoozeAction":
actionName = "snoozeActionTapped"
break
default: break
}
if let name = actionName {
NSNotificationCenter.defaultCenter().postNotificationName(name, object: nil)
}
}
completionHandler()
}
How Do I See Deleted Notifications? Unfortunately, there is no way to view notifications once you've deleted them. If you delete, clear, or open one, it will no longer appear on your iPhone's lock screen, and there's no way to retrieve it.
Go to Settings > Sounds & Haptics (on supported models) or Sounds (other models). Tap Text Tone, then do one of the following: Tap Vibration, then choose an option. Tap a sound below Alert Tones.
swipe down the screen and find that notification. left swipe the notification and tap "option" choose "Unmute"
Dismissing a notification does not wake your application up so there is no way to capture this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With