Getting Started
このプラグインのインストール手順と完全なマークダウンガイドを含むセットアップコマンドをコピーします。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-persistent-account`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/persistent-account/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
インストール
「インストール」のセクションAI-Assisted セットアップを使用してプラグインをインストールできます。次のコマンドを使用して、Capgo スキルをAIツールに追加します。
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins次のプロンプトを使用してください。
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-persistent-account` plugin in my project.Manual セットアップを使用する場合は、次のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。
bun add @capgo/capacitor-persistent-accountbunx cap syncインポート
「インポート」セクションimport { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';readAccount
Section titled “readAccount”readAccount
readAccount
import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';
const result = await CapacitorPersistentAccount.readAccount();if (result.data) { console.log('Account data:', result.data);} else { console.log('No account data found');}saveAccount
Section titled “saveAccount”saveAccount
saveAccount
import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';
await CapacitorPersistentAccount.saveAccount({ data: { userId: '12345', username: 'john.doe', email: 'john@example.com' }});Source Of Truth
Section titled “Source Of Truth”Source Of Truth src/definitions.ts. upstream の API が変更されたときに再度 sync を実行してください。
Getting Started から続けてください。
Getting Started から続けてください。Getting Started dashboard と __CAPGO_KEEP_0__ の計画と操作を行う場合、を接続してください。 native capability を使用する場合の @API/__CAPGO_KEEP_1__-persistent-account native capability を使用する場合の @capgo/capacitor-persistent-account for the native capability in Using @capgo/capacitor-persistent-account, API の実装詳細 API の実装詳細 Introduction Introduction の実装詳細 API キー API キーに関する実装詳細のため、 デバイス デバイスに関する実装詳細のため、