Skip to content

Commit 77555a2

Browse files
committed
feat: 인앱 브라우저 감지 훅에서 앱 정보 변경
- NAVER 앱 정보를 MEMEWIKI 앱 정보로 수정하여, 안드로이드 및 iOS 스토어 링크를 업데이트함
1 parent b3867cd commit 77555a2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

apps/web/src/hooks/useInAppBrowserDetect.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ const BROWSER_PATTERNS: BrowserPattern[] = [
3333
},
3434
];
3535

36-
// 테스트 용 (실제로는 우리의 앱 정보를 사용해야 함)
37-
const NAVER_APP_INFO = {
38-
androidPackage: 'com.nhn.android.search',
39-
iosAppId: '393499958',
36+
const MEMEWIKI_APP_INFO = {
37+
androidPackage: 'com.mimu_bird_meme',
38+
iosAppId: '6751053974',
4039
};
4140

4241
const useInAppBrowserDetect = () => {
@@ -64,14 +63,14 @@ const useInAppBrowserDetect = () => {
6463

6564
const moveToStore = useCallback(() => {
6665
if (isAndroid) {
67-
window.location.href = `market://details?id=${NAVER_APP_INFO.androidPackage}`;
66+
window.location.href = `market://details?id=${MEMEWIKI_APP_INFO.androidPackage}`;
6867
} else if (isIOS) {
69-
window.location.href = `itms-apps://itunes.apple.com/app/id${NAVER_APP_INFO.iosAppId}`;
68+
window.location.href = `itms-apps://itunes.apple.com/app/id${MEMEWIKI_APP_INFO.iosAppId}`;
7069
} else {
7170
// 폴백 URL (웹 버전)
7271
window.location.href = isAndroid
73-
? `https://play.google.com/store/apps/details?id=${NAVER_APP_INFO.androidPackage}`
74-
: `https://apps.apple.com/app/id${NAVER_APP_INFO.iosAppId}`;
72+
? `https://play.google.com/store/apps/details?id=${MEMEWIKI_APP_INFO.androidPackage}`
73+
: `https://apps.apple.com/app/id${MEMEWIKI_APP_INFO.iosAppId}`;
7574
}
7675
}, [isAndroid, isIOS]);
7776

0 commit comments

Comments
 (0)