メインコンテンツにジャンプ
@capgo/capacitor-appinsights 分析 オープンソース

AppInsights Capacitor プラグイン

Apptopia AppInsightsを使用してアプリの使用状況、パフォーマンスメトリック、ユーザーの行動を追跡

インストール

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

Guide

How to use AppInsights in Capacitor

ガイド

Download the Capgo app, then scan the QR code.

AppInsights プラグインのプレビューQRコードcode

@capgo/capacitor-appinsightsを使用

AppInsightsのラッパー https://github.com/apptopia/appinsights SDK

インストール

bun add @capgo/capacitor-appinsights
bunx cap sync

bunx cap sync プラグインのネイティブcodeをプロジェクトにコピーします。プラグインのアップグレード後は再度実行してください。

インポート

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

APIの概要

方法 説明
init SDKを初期化する
setUserId __CAPGO_KEEP_0__のユーザーIDを設定または更新する
getState SDKの現在の状態を取得する

例

init()

SDKを初期化する

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.init({
  partnerId: 'partner-id-123',
  partnerKey: 'partner-key-123',
});

setUserId()

__CAPGO_KEEP_0__のユーザーIDを設定または更新する

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.setUserId({ userId: 'user-id-123' });

getState()

SDKの現在の状態を取得する

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

const result = await CapacitorAppInsights.getState();
console.log(result);

context

@capgo/capacitorアプリインサイトス

Capacitor App Insights を使用している場合 Using @capgo/capacitor-appinsights Capacitor App Insights を使用して @capgo/capacitor-appinsights @capgo/capacitor-アプリインサイトの実装詳細 Capacitor App Insights を使用して Capacitor App Insights を使用して Capgo プラグインディレクトリ for the product workflow in Capgo Plugin Directory, Capacitor Capgo for Capacitor の実装詳細については、Capgo によって提供されるプラグインを参照してください。 プラグインの追加または更新 プラグインの追加または更新の実装詳細について

FAQ

AppInsightsプラグインのFAQ

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

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

@capgo/capacitor-appinsightsは、React、Vue、Angularとどのように動作しますか?

Yes. AppInsights 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-appinsights 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/capacitor-appinsightsは無料かつオープンソースですか?

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

Can I update code that uses AppInsights without an App Store review?

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

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

Once the plugin is in your store build, Capgo live updates push your JavaScript, HTML and CSS changes to users in minutes.

Start with Capgo