Skip to content

Commit b8e6b58

Browse files
committed
fix(notifications): rename hub payload event requestNotificationsPermissions (#2795)
1 parent 3bcf3ab commit b8e6b58

File tree

1 file changed

+1
-1
lines changed
  • AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp/PushNotificationHostApp

1 file changed

+1
-1
lines changed

AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp/PushNotificationHostApp/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct ContentView: View {
5959

6060
func listenHubEvent() {
6161
pushNotificationHubSubscription = Amplify.Hub.listen(to: .pushNotifications) { payload in
62-
if payload.eventName == HubPayload.EventName.Notifications.Push.registerForRemoteNotifications {
62+
if payload.eventName == HubPayload.EventName.Notifications.Push.requestNotificationsPermissions {
6363
self.hubEvents.append(payload.eventDescription)
6464
}
6565
}

0 commit comments

Comments
 (0)