안내서
Firebase Remote Config에 대한 튜토리얼
Firebase Remote Config을 사용하는 @capgo/capacitor-firebase-remote-config
Capacitor 플러그인으로 Firebase Remote Config.
설치
bun add @capgo/capacitor-firebase-remote-config
bunx cap sync
이 플러그인이 제공하는 것
activate- 마지막으로 가져온 구성이 getter에 사용할 수 있도록합니다.fetchAndActivate- fetch 및 activate 작업을 수행합니다.fetchConfig- Remote Config 서비스에서 구성 캐시 및 가져오기.getBoolean- 주어진 키에 대한 boolean 값 가져오기.
예시 사용
activate
__CAPGO_KEEP_0__:를 가져온 마지막 구성이 getter에 사용할 수 있도록 하세요.
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
Remote Config 서비스에서 구성 가져오기 및 캐시
import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';
await FirebaseRemoteConfig.fetchConfig();
getBoolean
__CAPGO_KEEP_0__ 키에 대한 값을 boolean으로 가져오세요.
import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';
await FirebaseRemoteConfig.getBoolean({} as GetBooleanOptions);
전체 참조
- GitHub https://github.com/Cap-go/capacitor-firebase/tree/main/packages/remote-config
- 문서: /docs/plugins/firebase-remote-config/