Skip to content

Commit

Permalink
feature: userNotification request
Browse files Browse the repository at this point in the history
  • Loading branch information
Jihyun247 committed Aug 16, 2024
1 parent 3980237 commit eb8a4e0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import APIClientInterface
import UserServiceInterface
import UserNotificationClientInterface
import Shared

import ComposableArchitecture
Expand Down Expand Up @@ -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<Self> {
BindingReducer()
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit eb8a4e0

Please sign in to comment.