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

파이어베이스 함수 Capacitor 플러그인

Capacitor 플러그인 (Firebase Cloud Functions)

설치

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

가이드

Capacitor에서 파이어베이스 함수를 사용하는 방법

@capgo/capacitor-파이어베이스-함수

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

설치

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

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

수입

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

API의 개요

방법 설명
callByName 명령형 함수를 이름으로 호출합니다.
callByUrl URL로 명령형 함수를 호출합니다.
useEmulator 앱을 클라우드 함수 에뮬레이터와 통신하기 위해 인스트루먼트합니다.

예제

callByName()

명령형 함수를 이름으로 호출합니다.

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

const result = await FirebaseFunctions.callByName({ name: 'myFunction' });
console.log(result);

callByUrl()

URL로 명령형 함수를 호출합니다.

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

const result = await FirebaseFunctions.callByUrl({
  url: 'https://us-central1-my-project.cloudfunctions.net/myFunction',
});
console.log(result);

useEmulator()

앱을 클라우드 함수 에뮬레이터와 통신하기 위해 인스트루먼트합니다.

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

await FirebaseFunctions.useEmulator({ host: "127.0.0.1" });

역할: 섹션 또는 페이지 제목. 페이지: bug-bounty.astro. 메시지 키: bug_bounty_supabase_examples_title (Bug Bounty Supabase Examples Title).

Keep going from Using @capgo/capacitor-firebase-functions

__CAPGO_KEEP_0__ 사용하기 @capgo/capacitor-firebase-함수 __CAPGO_KEEP_0__ 플러그인 디렉토리 Capgo 플러그인 Capgo 플러그인 Capacitor Capgo 플러그인 Capacitor 플러그인에 대한 구현 세부 사항은 Capgo에 의해 제공됩니다. __CAPGO_KEEP_0__ reference 구현 세부 정보에 대한 Adding or Updating Plugins에 대해 Enterprise Ionic Plugin Alternatives 구현 세부 정보에 대한 Ionic Enterprise Plugin Alternatives에 대해, 그리고 Capgo Native Builds에 대해 구현 세부 정보에 대한 Capgo Native Builds에 대해.

FAQ

Firebase Functions 플러그인 FAQ

파이어베이스 함수 플러그인을 Capacitor 앱에 설치하는 방법은 무엇입니까?

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

React, Vue 및 Angular과 함께 @capgo/capacitor-firebase-functions가 작동하나요?

Yes. Firebase Functions is a Capacitor package, so it works with any web framework that runs inside Capacitor, including Ionic, React, Vue, Angular, Svelte and plain JavaScript.

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

Capgo plugins follow Capacitor's major version: use the plugin major version that matches your Capacitor major version (for example plugin v8 with Capacitor 8). The compatibility table in the GitHub README lists the maintained versions.

Capgo에서 @capgo/capacitor-firebase-functions가 무료이고 오픈 소스인가요?

Yes. The source code is public on GitHub at https://github.com/Cap-go/capacitor-firebase/tree/main/packages/functions and the package is free to install from npm. Bug reports and pull requests are welcome.

Firebase Functions을 사용하는 code를 App Store 리뷰 없이 업데이트할 수 있나요?

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

앱 리뷰 기다리지 않고 Firebase Functions 변경을 배달하세요

Capgo를 시작하세요

Capgo 홈