Skip to content

Commit 1bfbee3

Browse files
committed
fix: MainActor 내에서 동작하도록 보장
1 parent 2bdb8c5 commit 1bfbee3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Application/DevLogApp/Sources/App/Delegate/AppDelegate.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7777
NotificationCenter.default.post(name: .didRequestFCMTokenSync, object: nil)
7878
}
7979

80-
@MainActor
8180
@objc private func handleRemoteNotificationRegistrationRequest() {
82-
UIApplication.shared.registerForRemoteNotifications()
81+
Task { @MainActor in
82+
UIApplication.shared.registerForRemoteNotifications()
83+
}
8384
}
8485

8586
// APNs 등록 성공

0 commit comments

Comments
 (0)