Skip to content

Commit

Permalink
upd readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korniienko authored Nov 17, 2022
1 parent 2e1c069 commit 97cc165
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate{
public func userNotificationCenter(_ center: UNUserNotificationCenter,
willPresent notification: UNNotification,
withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
//If you don't want to show notification when app is open, do something here else and make a return here.
//If you don't implement this delegate method, you will not see the notification on the specified controller. So, you have to implement this delegate and make sure the below line execute. i.e. completionHandler.
//If you don't want to show notification when app is open, do something here else and make a return here.
completionHandler([.alert, .sound, .badge])
}

Expand Down

0 comments on commit 97cc165

Please sign in to comment.