알림 수신 설정 푸시 권한 연동 구현
- 앱브리지에 isPushNotificationEnabled, openAppSettings 메서드 추가 - 설정 페이지에서 푸시 알림 권한 상태에 따라 알림 수신 설정 토글 표시 - 알림 수신 설정 토글 클릭 시 앱 설정 화면으로 이동 - 푸시 권한이 꺼져있으면 하위 알림 토글들(11, 21, 31, 41, 61, 62) 비활성화 - 앱이 포어그라운드로 돌아올 때 푸시 권한 상태 재확인하여 UI 업데이트 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -195,6 +195,16 @@ class AppBridge {
|
||||
return this.sendMessage(BridgeMessageType.UPDATE_MESSAGE_COUNT, { count });
|
||||
}
|
||||
|
||||
// 푸시 알림 권한 확인
|
||||
async isPushNotificationEnabled(): Promise<boolean> {
|
||||
return this.sendMessage(BridgeMessageType.IS_PUSH_NOTIFICATION_ENABLED);
|
||||
}
|
||||
|
||||
// 앱 설정 화면 열기
|
||||
async openAppSettings(): Promise<void> {
|
||||
return this.sendMessage(BridgeMessageType.OPEN_APP_SETTINGS);
|
||||
}
|
||||
|
||||
// 네이티브 환경 체크
|
||||
isNativeEnvironment(): boolean {
|
||||
return !!(
|
||||
|
||||
Reference in New Issue
Block a user