메인 콘텐츠로 건너뛰기
@capgo/capacitor-firebase-remote-config 인터그레이션 오픈 소스

파이어베이스 리모트 구성 Capacitor 플러그인

Capacitor 플러그인 (파이어베이스 리모트 구성)

설치

bun add @capgo/capacitor-firebase-remote-config bunx cap sync
npm, pnpm 또는 yarn
  • npm install @capgo/capacitor-firebase-remote-config
  • pnpm add @capgo/capacitor-firebase-remote-config
  • yarn add @capgo/capacitor-firebase-remote-config

사용자 가이드

Capacitor에서 파이어베이스 리모트 구성 사용하기

capgo/capacitor-파이어베이스-리모트-구성

Capacitor 파이어베이스 리모트 구성 플러그인

설치

bun add @capgo/capacitor-firebase-remote-config
bunx cap sync

bunx cap sync code은 플러그인의 네이티브 code을 네이티브 프로젝트에 복사합니다. 플러그인 업그레이드 후 다시 실행하세요.

수입

import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';

API의 주요 기능

방법 설명
activate 가져온 마지막 설정을 가져와 주는 getter에 사용할 수 있도록 합니다.
fetchAndActivate 가져오기 및 활성화 작업을 수행합니다.
fetchConfig Remote Config 서비스에서 설정을 가져와 캐시합니다.
getBoolean 주어진 키에 대한 boolean 값을 가져옵니다.
getNumber 주어진 키에 대한 숫자 값을 가져옵니다.
getString 주어진 키에 대한 문자열 값을 가져옵니다.
getAll Remote Config 서비스에서 모든 값을 가져옵니다.
getInfo 가져온 마지막 가져오기 작업에 대한 정보를 가져옵니다.
setMinimumFetchInterval __CAPGO_KEEP_0__
setDefaults __CAPGO_KEEP_0__
setSettings __CAPGO_KEEP_0__
addConfigUpdateListener __CAPGO_KEEP_0__
removeConfigUpdateListener __CAPGO_KEEP_0__

예시

activate()

__CAPGO_KEEP_0__

import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';

await FirebaseRemoteConfig.activate();

fetchAndActivate()

__CAPGO_KEEP_0__

import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';

await FirebaseRemoteConfig.fetchAndActivate();

fetchConfig()

__CAPGO_KEEP_0__

import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';

await FirebaseRemoteConfig.fetchConfig();

getBoolean()

__CAPGO_KEEP_0__

import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';

const result = await FirebaseRemoteConfig.getBoolean({ key: 'key-123' });
console.log(result);

getNumber()

__CAPGO_KEEP_0__

import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';

const result = await FirebaseRemoteConfig.getNumber({ key: 'key-123' });
console.log(result);

getString()

__CAPGO_KEEP_0__

import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';

const result = await FirebaseRemoteConfig.getString({ key: 'key-123' });
console.log(result);

위 표는 13 개의 핵심 메서드를 나열합니다. 리스너 및 버전 도우미, 각 메서드의 전체 계약은 __CAPGO_KEEP_0__ GitHub 저장소.

전체 참조

capgo를 사용하여 @capgo/capacitor-firebase-remote-config를 계속하세요

__CAPGO_KEEP_0__를 사용하여 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-firebase-remote-config를 사용하고 있습니다 @capgo/capacitor-firebase-remote-config __CAPGO_KEEP_0__ 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우 Capgo 플러그인 디렉토리 Capacitor Capgo 플러그인 Capacitor 플러그인 Capgo 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 아이온 이코노미즈 플러그인 대체 아이온 이코노미즈 플러그인 대체 Capgo 네이티브 빌드 Capgo 네이티브 빌드

FAQ

Firebase Remote Config 플러그인 FAQ

Firebase Remote Config 플러그인을 Capacitor 앱에 설치하는 방법은?

Run "bun add @capgo/capacitor-firebase-remote-config" (or "npm install @capgo/capacitor-firebase-remote-config"), then run "bunx cap sync" so the iOS and Android projects pick up the native code. Import it from "@capgo/capacitor-firebase-remote-config" in your app code.

Capgo에서 @capgo/capacitor-firebase-remote-config는 React, Vue 및 Angular와 함께 작동합니까?

어떤 Capacitor 버전이 @Capacitor/__CAPGO_KEEP_2__-firebase-remote-config에 지원되는지

Capgo Capacitor 버전은 @capgo/capacitor-firebase-remote-config이 지원하는 버전인가요?

Capgo 플러그인은 Capacitor의 메이저 버전을 따릅니다: Capacitor의 메이저 버전과 일치하는 플러그인 메이저 버전을 사용하십시오 (예를 들어 플러그인 v8과 Capacitor 8). GitHub README에 있는 호환성 표에 나열된 버전을 유지합니다.

capgo/capacitor-firebase-remote-config은 무료이며 오픈 소스인가요?

네. code의 소스는 GitHub에 공개되어 있습니다 (https://github.com/Cap-go/capacitor-firebase/tree/main/packages/remote-config) 및 npm에서 무료로 설치할 수 있습니다. 버그 리포트와 풀 리퀘스트는 환영합니다.

code를 Firebase Remote Config와 함께 사용하는 앱을 업데이트할 수 있나요?

플러그인을 설치하거나 업그레이드하면 원시 code이 변경되므로 새로운 스토어 빌드를 필요로 합니다. 그 후에 Capgo의 라이브 업데이트와 함께 즉시 JavaScript, HTML 및 CSS 변경 사항이 플러그인을 호출할 수 있습니다.

앱 리뷰 기다리지 않고 Firebase Remote Config 변경을 배포하세요

플러그인이 스토어 빌드에 포함되면 Capgo live updates는 사용자에게 몇 분만에 JavaScript, HTML 및 CSS 변경을 푸시합니다.

Capgo로 시작하세요