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:
@@ -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
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user