AppInsights __CAPGO_KEEP_0__ 插件:安装、设置 & 示例
返回插件
@capgo/capacitor-appinsights
教程
由 github.com/Cap-go

AppInsights

使用Apptopia AppInsights跟踪应用程序使用情况、性能指标和用户行为

指南

AppInsights 教程

使用 @capgo/capacitor-appinsights

AppInsights 的包装器 https://github.com/apptopia/appinsights SDK.

安被

bun add @capgo/capacitor-appinsights
bunx cap sync

载统果导八的请求

  • init - 安被 AppInsights SDK.
  • setUserId - 载统果导八用户 ID 下给管理的请求.
  • getState - Get the current state of the SDK.

使用请求

init

安被 AppInsights SDK.

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

await CapacitorAppInsights.init({} as {
    partnerId: string; // Provided by our business unit
    partnerKey: string; // Provided by our business unit
  });

setUserId

载统果导八用户 ID 下给管理的请求.

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

await CapacitorAppInsights.setUserId({} as { userId: string });

getState

Get the current state of the SDK.

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

await CapacitorAppInsights.getState();

给算的请求

继续使用@capgo/capacitor-appinsights

如果您正在使用 使用@capgo/capacitor-appinsights 来规划原生插件工作,连接它与 @capgo/capacitor-appinsights 查看@capgo/capacitor-appinsights的实现细节 开始使用 查看开始使用的实现细节 Capgo 插件目录 查看Capgo 插件目录中的产品工作流程 Capacitor 插件由 Capgo 提供 为 Capacitor 插件由 Capgo 提供的实现细节 添加或更新插件 为添加或更新插件的实现细节