Add checkAlarmLink feature to handle alarm links on first access

- Add CHECK_ALARM_LINK to BridgeMessageType enum
- Implement checkAlarmLink method in appBridge class
- Add checkAlarmLink to useAppBridge hook
- Call checkAlarmLink on HomePage when firstAccess is true
- Clean up unused imports and minor code formatting

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-11-05 14:28:16 +09:00
parent a61f0bc2ff
commit 24c45731dc
4 changed files with 37 additions and 18 deletions

View File

@@ -72,6 +72,9 @@ interface UseAppBridgeReturn {
// 언어 설정 조회
getLanguage: () => Promise<string>;
// 알림 링크 확인
checkAlarmLink: () => Promise<void>;
}
export const useAppBridge = (): UseAppBridgeReturn => {
@@ -315,6 +318,13 @@ export const useAppBridge = (): UseAppBridgeReturn => {
return appBridge.safeCall(() => appBridge.setLoginType(type));
}, [isNativeEnvironment]);
const checkAlarmLink = useCallback(async (): Promise<void> => {
if (!isNativeEnvironment) {
return;
}
return appBridge.safeCall(() => appBridge.checkAlarmLink());
}, [isNativeEnvironment]);
return {
isNativeEnvironment,
isAndroid,
@@ -342,6 +352,7 @@ export const useAppBridge = (): UseAppBridgeReturn => {
setLoginType,
getNotificationSetting,
setNotificationSetting,
getLanguage
getLanguage,
checkAlarmLink
};
};