Skip to main content
플러그인으로 돌아가기
@capgo/capacitor-firebase-functions
튜토리얼
@capgo/capacitor-firebase-functions

파이어베이스 함수

Capacitor 플러그인 - 파이어베이스 클라우드 함수

Guide

Tutorial on Firebase Functions

Using @capgo/capacitor-firebase-functions

Capacitor plugin for Firebase Cloud Functions.

Install

bun add @capgo/capacitor-firebase-functions
bunx cap sync

What This Plugin Exposes

  • callByName - Call a callable function by name.
  • callByUrl - URL을 통해 callable 함수를 호출하세요.
  • useEmulator - Cloud Functions 에뮬레이터와 대화하기 위해 앱을 인스트루먼트하세요.

예시 사용

callByName

callable 함수를 이름으로 호출하세요.

import { FirebaseFunctions } from '@capgo/capacitor-firebase-functions';

await FirebaseFunctions.callByName({} as CallByNameOptions<RequestData>);

callByUrl

URL을 통해 callable 함수를 호출하세요.

import { FirebaseFunctions } from '@capgo/capacitor-firebase-functions';

await FirebaseFunctions.callByUrl({} as CallByUrlOptions<RequestData>);

useEmulator

Cloud Functions 에뮬레이터와 대화하기 위해 앱을 인스트루먼트하세요.

import { FirebaseFunctions } from '@capgo/capacitor-firebase-functions';

await FirebaseFunctions.useEmulator({} as UseEmulatorOptions);

전체 참조

Using @capgo/capacitor-firebase-functions에서 계속하세요.

Cloudflare, Capacitor, GitHub, Capgo, code, API, SDK, CLI, npm, bun을 제외한 경우 capgo와 capacitor-firebase-functions을 사용하여 자연 플러그인 작업을 계획하고 __CAPGO_KEEP_0__ Plugin Directory와 연결합니다. Capgo Plugin Directory의 제품 워크플로우 Capgo Plugin Directory의 __CAPGO_KEEP_1__ 플러그인 Capacitor 플러그인의 구현 세부 정보는 Capgo 플러그인 for the implementation detail in Capacitor Plugins by Capgo, 플러그인 추가 또는 업데이트의 구현 세부 정보 아이오닉 엔터프라이즈 플러그인 대안 아이오닉 엔터프라이즈 플러그인 대안의 제품 워크플로우 __CAPGO_KEEP_0__ 네이티브 빌드 Capgo 네이티브 빌드의 제품 워크플로우 Capgo와 __CAPGO_KEEP_1__