From eb8a4e0bd3d3d7267be0b960d00e5f479fa4d17d Mon Sep 17 00:00:00 2001 From: Jihyun247 Date: Fri, 16 Aug 2024 20:28:16 +0900 Subject: [PATCH] feature: userNotification request --- .../OnboardingFeature/Sources/SelectCat/SelectCatCore.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Projects/Feature/OnboardingFeature/Sources/SelectCat/SelectCatCore.swift b/Projects/Feature/OnboardingFeature/Sources/SelectCat/SelectCatCore.swift index 94b8fb1..5a69733 100644 --- a/Projects/Feature/OnboardingFeature/Sources/SelectCat/SelectCatCore.swift +++ b/Projects/Feature/OnboardingFeature/Sources/SelectCat/SelectCatCore.swift @@ -8,6 +8,7 @@ import APIClientInterface import UserServiceInterface +import UserNotificationClientInterface import Shared import ComposableArchitecture @@ -35,6 +36,7 @@ public struct SelectCatCore { @Dependency(APIClient.self) var apiClient @Dependency(UserService.self) var userService + @Dependency(UserNotificationClient.self) var userNotificationClient public var body: some ReducerOf { BindingReducer() @@ -75,6 +77,7 @@ public struct SelectCatCore { return .run { send in _ = try await userService.selectCat(no: selectedCat.no, apiClient: apiClient) // user notification 요청 + _ = try await userNotificationClient.requestAuthorization([.alert, .badge, .sound]) // go to naming cat }