メインコンテンツにジャンプ
@capgo/capacitor-firebase-firestore ファイル & ストレージ オープンソース

Firebase Firestore Capacitor プラグイン

Capacitor プラグイン for Firebase Cloud Firestore

インストール

bun add @capgo/capacitor-firebase-firestore bunx cap sync
npm、pnpm または yarn
  • npm install @capgo/capacitor-firebase-firestore
  • pnpm add @capgo/capacitor-firebase-firestore
  • yarn add @capgo/capacitor-firebase-firestore

ガイド

Firebase Firestore を Capacitor で使用する方法

@capgo/capacitor-firebase-firestore を使用します。

Capacitor は Firebase Cloud Firestore のプラグインです。

インストール

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

このプラグインが公開するもの

  • addDocument - 指定されたデータでコレクションに新しいドキュメントを追加します。
  • setDocument - 指定された参照で参照されるドキュメントに書き込む。ドキュメントがまだ存在しない場合は作成されます。
  • getDocument - 指定された参照で参照されるドキュメントを読み取ります。
  • updateDocument - 指定された参照で参照されるドキュメントのフィールドを更新します。

使用例

addDocument

指定されたデータでコレクションに新しいドキュメントを追加します。

import { FirebaseFirestore } from '@capgo/capacitor-firebase-firestore';

await FirebaseFirestore.addDocument({} as AddDocumentOptions);

setDocument

指定された参照で参照されるドキュメントに書き込む。ドキュメントがまだ存在しない場合は作成されます。

import { FirebaseFirestore } from '@capgo/capacitor-firebase-firestore';

await FirebaseFirestore.setDocument({} as SetDocumentOptions);

getDocument

指定された参照で参照されるドキュメントを読み取ります。

import { FirebaseFirestore } from '@capgo/capacitor-firebase-firestore';

await FirebaseFirestore.getDocument({} as GetDocumentOptions);

updateDocument

__CAPGO_KEEP_0__のドキュメントを指定された参照によって参照されるドキュメントのフィールドを更新します。

import { FirebaseFirestore } from '@capgo/capacitor-firebase-firestore';

await FirebaseFirestore.updateDocument({} as UpdateDocumentOptions);

フルリファレンス

使用から続けて@capgo/capacitor-firebase-firestore

__CAPGO_KEEP_0__を使用している場合 Capgoは@capgo/capacitor-firebase-firestoreを使用します。 プラグインのネイティブワークを計画するには、接続する Capgo Plugin Directoryの製品ワークフローにCapgo Plugin Directoryを接続します。 Capgoの__CAPGO_KEEP_1__によって提供されるプラグイン Capacitor Capgo Capgoプラグインの実装詳細については、Capacitor プラグインによってCapgoで プラグインの追加または更新 Capgoプラグインの実装詳細については、プラグインの追加または更新 Ionic Enterpriseプラグインの代替 Ionic Enterpriseプラグインのワークフローについて、 Capgoネイティブビルド Capgoプラグインのワークフローについて、Capgoネイティブビルド

FAQ

Firebase Firestore プラグインのFAQ

Firebase Firestore プラグインを Capacitor アプリにインストールする方法は何ですか。

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

Capgoでは、@capgo/capacitor-firebase-firestoreは、React、Vue、Angularとどのように動作するか?

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

Which Capacitor version does @capgo/capacitor-firebase-firestore support?

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-firestoreは無料でオープンソースですか?

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

Firebase Firestore を使用する code を App Store のレビューなしでアップデートできますか?

code をインストールまたはアップグレードすると、ネイティブ code が変更されるため、新しいストアビルドが必要になります。その後、Capgo のライブアップデートを使用して、JavaScript、HTML、CSS の変更が即座に Capgo で配信できます。

Firebase Firestoreの変更をアプリレビューの待たずに配信

Capgoを利用して始めましょう

Start with Capgo