fix: Android APK 다운로드 — @capacitor/browser 사용

Capacitor 7 App 플러그인에 openUrl이 없어 Browser.open으로 외부 다운로드 처리.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-14 17:04:52 +09:00
parent c840e09885
commit 53266ccc64
5 changed files with 18 additions and 2 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
* Android 앱 내 업데이트 — /api/mobile-app/info 버전 비교 후 APK 다운로드
*/
import { App } from '@capacitor/app';
import { Browser } from '@capacitor/browser';
import { Capacitor } from '@capacitor/core';
import {
isRemoteVersionNewer,
@@ -50,7 +51,7 @@ export async function openApkDownload(release?: MobileAppReleaseInfoDto | null):
if (Capacitor.isNativePlatform() && Capacitor.getPlatform() === 'android') {
try {
await App.openUrl({ url });
await Browser.open({ url });
return true;
} catch {
/* fallback */