Skip to content

Commit 01d1c84

Browse files
authored
fix completion handler constants (#172)
1 parent 29733b3 commit 01d1c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ And then in your AppDelegate implementation, add the following:
142142
//Called when a notification is delivered to a foreground app.
143143
-(void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
144144
{
145-
completionHandler(UNAuthorizationOptionSound | UNAuthorizationOptionAlert | UNAuthorizationOptionBadge);
145+
completionHandler(UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionBadge);
146146
}
147147
```
148148

0 commit comments

Comments
 (0)