메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-firebase-remote-config
튜토리얼
github.com/Cap-go

Firebase Remote Config

Capacitor 플러그인 - Firebase Remote Config

Guide

Firebase Remote Config에 대한 튜토리얼

capgo의 capacitor-firebase-remote-config를 사용하는 방법

Firebase Remote Config에 대한 Capacitor 플러그인.

Install

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

이 플러그인이 제공하는 것

  • activate - 마지막으로 가져온 구성이 getter에 사용할 수 있도록합니다.
  • fetchAndActivate - fetch 및 activate 연산을 수행합니다.
  • fetchConfig - Remote Config 서비스에서 구성 가져오고 캐시합니다.
  • getBoolean - 주어진 키에 대한 boolean 값 가져오기.

예시 사용

activate

마지막으로 가져온 구성이 가져터에 사용할 수 있도록 하세요.

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

await FirebaseRemoteConfig.activate();

fetchAndActivate

fetch 및 활성화 작업을 수행하세요.

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

await FirebaseRemoteConfig.fetchAndActivate();

fetchConfig

Remote Config 서비스에서 구성 가져오기 및 캐시하세요.

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

await FirebaseRemoteConfig.fetchConfig();

getBoolean

지정된 키에 대한 값을 boolean 값으로 가져오세요.

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

await FirebaseRemoteConfig.getBoolean({} as GetBooleanOptions);

전체 참조