Ionic and Capacitor live updates with @capgo/capacitor-updater
@capgo/capacitor-updater is the open-source updater plugin behind Capgo live updates for Ionic and Capacitor apps. It downloads approved web bundles, applies them with native rollback protection, and keeps binary-only changes on the normal App Store and Play review path.
설치
위치
npm install @capgo/capacitor-updater
npx cap sync
아이오닉 팀에게는 라이브 업데이트가 일반적으로 같은 워크플로를 의미합니다: 새로운 웹 번들을 배포하여 모든 사용자가 전체 스토어 릴리스를 거치도록 강제하지 않습니다. __CAPGO_KEEP_0__은 __CAPGO_KEEP_1__ 앱에 채널, 호환성 검사, 롤아웃 제어, 장치 로그, 롤백을 지원합니다.
For Ionic teams, live updates usually mean the same workflow: ship a new web bundle without forcing every user through a full store release. Capgo handles that workflow for Capacitor apps with channels, compatibility checks, rollout control, device logs, and rollback.
SDK
이 플러그인은 다음을 제공합니다.
notifyAppReady- 자바스크립트 초기화가 성공적으로 완료되었음을 native layer에 알립니다.setUpdateUrl- 앱의 업데이트 URL을 런타임에 동적으로 설정합니다.setStatsUrl- 앱의 통계 URL을 런타임에 동적으로 설정합니다.setChannelUrl- 앱의 채널 URL을 런타임에 동적으로 설정합니다.
예시 사용
notifyAppReady
자바스크립트 초기화가 성공적으로 완료되었음을 native layer에 알립니다.
import { CapacitorUpdater } from '@capgo/capacitor-updater';
const result = await CapacitorUpdater.notifyAppReady();
console.log(result);
setUpdateUrl
앱의 업데이트 URL을 런타임에 동적으로 설정합니다.
import { CapacitorUpdater } from '@capgo/capacitor-updater';
await CapacitorUpdater.setUpdateUrl({ url: 'https://example.com' });
setStatsUrl
앱의 통계 URL을 런타임에 동적으로 설정합니다.
import { CapacitorUpdater } from '@capgo/capacitor-updater';
await CapacitorUpdater.setStatsUrl({ url: 'https://example.com' });
setChannelUrl
앱의 채널 URL을 런타임에 동적으로 설정합니다.
import { CapacitorUpdater } from '@capgo/capacitor-updater';
await CapacitorUpdater.setChannelUrl({ url: 'https://example.com' });
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-updater/
- 문서: /docs/plugins/updater/
- Live update 제품: /live-update/
capgo에서 계속: @capgo/capacitor-updater
만약에 __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-updater를 사용하고 있다면 @capgo/capacitor-업데이터 live update를 계획하기 위해 연결하세요 라이브 업데이트 __CAPGO_KEEP_0__ 제품 워크플로우를 위해 @capgo/capacitor-업데이터 __CAPGO_KEEP_0__ 구현 세부 사항을 위해 시작하기, 채널, 그리고 롤백.