Skip to content

Commit

Permalink
Reopen iOS killed app when tap on notification stop button
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelataillade committed Oct 29, 2024
1 parent 13cedf6 commit 4bb398f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/services/NotificationManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class NotificationManager: NSObject, UNUserNotificationCenterDelegate {
return
}

let action = UNNotificationAction(identifier: "STOP_ACTION", title: actionTitle, options: [.destructive])
let action = UNNotificationAction(identifier: "STOP_ACTION", title: actionTitle, options: [.foreground, .destructive])
let category = UNNotificationCategory(identifier: categoryIdentifier, actions: [action], intentIdentifiers: [], options: [])

UNUserNotificationCenter.current().getNotificationCategories { existingCategories in
Expand Down

0 comments on commit 4bb398f

Please sign in to comment.