C#
原生 .NET
Android 与 iOS
直接使用基础遥测 SDK,在平台应用入口运行之前启动原生客户端,无需依赖 Prism。
后台任务与无界面的托管宿主应使用基础遥测接口,无需接入 UI 集成。
了解 原生 .NET使用原生 Swift、原生 Kotlin、跨平台 .NET 或 Flutter,在 AppPortal 中关联事件、日志、会话、崩溃与发布版本。
按各框架熟悉的方式编写代码,让所有应用使用一致的事件名称、属性和度量。
// One call, with properties and measurements
AppPortalSdk.TrackEvent("checkout.completed",
properties: new Dictionary<string, string> { ["plan"] = "growth" },
measurements: new Dictionary<string, double> { ["value"] = 49.00 }); // Same event, native Swift
AppPortal.trackEvent("checkout.completed",
properties: ["plan": "growth"],
measurements: ["value": 49.00]) // Same event, native Kotlin
AppPortal.trackEvent("checkout.completed",
properties = mapOf("plan" to "growth"),
measurements = mapOf("value" to 49.00)) // Same event, Flutter and Dart
AppPortal.trackEvent('checkout.completed',
properties: {'plan': 'growth'},
measurements: {'value': 49.00}); 请参阅 SDK 兼容性与限制 ,了解支持的工具链与平台行为。
从实际发布的应用宿主开始。各指南说明相应技术栈的启动方式、生命周期和可采集的遥测。
选择应用技术栈,安装对应软件包,并按指南启动一个客户端。
C#
Android 与 iOS
直接使用基础遥测 SDK,在平台应用入口运行之前启动原生客户端,无需依赖 Prism。
后台任务与无界面的托管宿主应使用基础遥测接口,无需接入 UI 集成。
了解 原生 .NETC# 与 XAML
Android、iOS、Windows(WinUI)、Mac Catalyst
先启动原生客户端,再接入 MAUI。可见的主页面会自动跟踪。
按需启用 Shell 导航采集,以获取导航结果和耗时;该集成不测量首次绘制。
先启动原生客户端,再添加 Prism 日志集成。Region 导航为可选功能,仅观测 Region 转换,不跟踪 MAUI 页面、对话框或 Shell。
阅读 Prism 集成说明C# 与 XAML
Android、iOS、WinUI 和 Skia Desktop
在宿主启动之前启动原生客户端。注册 Uno 服务后再关联应用;Frame 导航按需启用。
Skia Desktop 覆盖 Linux、macOS 和 Win32。Linux 的自动显示生命周期采集要求 X11,不支持 framebuffer;BrowserWasm 运行时支持不包含浏览器凭据配置。
先启动原生客户端,再添加 Prism 日志集成。Region 导航为可选功能,仅观测 Region 转换,不跟踪 MAUI 页面、对话框或 Shell。
阅读 Prism 集成说明Swift
Apple 应用宿主
为 Apple 应用使用原生 Swift 集成及对应的生命周期接口。
Swift 软件包产品
选择 AppPortalTelemetry,并按需添加 Messaging、Location 和 Smart Links 可选产品。按 Apple 指南完成配置。
按 Apple 指南了解当前的生命周期和遥测接口。
了解 Apple 原生集成Kotlin
Android
通过原生 Android 集成采集应用生命周期和遥测。
按 Android 指南完成安装、启动和同意设置。
了解 Android 原生集成Dart
Flutter 应用宿主
遵循 Flutter 专用的初始化和遥测接口要求。
按实际应用宿主选择集成方式,避免直接套用其他框架的原生启动代码。
了解 FlutterC# 与 XAML
无专用框架集成
不提供 Avalonia 专用的生命周期和导航集成。
通用托管遥测不提供 Avalonia 专用的生命周期或导航集成。
查看兼容性根据上方卡片中所选框架的安装指南,安装软件包并在应用中初始化客户端。
使用仪表板提供的应用凭据或客户端配置初始化。各框架指南说明同意设置和自动采集的具体行为。
运行真实流程,在 DevSpace 或仪表板中查看会话。添加业务事件,结合技术上下文衡量目标结果。
One app model connects supported SDK data. Capture, persistence, crash handling, and optional modules depend on your host and integration.
Supported .NET hosts supply native lifecycle and timing hooks; MAUI visible-page tracking is automatic, while Shell, Uno Frame, and Prism Region navigation use their documented adapters. Swift and Kotlin follow native host setup. Flutter navigation, startup, and HTTP instrumentation are manual. SDK 兼容性与限制
Record business events with properties and measurements, then investigate them in the appropriate app, environment, platform, and release.
Capture and symbolication follow the SDK, runtime, and symbol artifacts for your host. Check native fatal-crash support separately from handled errors.
Follow the recorded screens, events, logs, requests, and errors in sequence. Automatic capture and manual adapters depend on the host.
Send structured application logs and investigate them alongside the available session and error context.
Use supported startup, navigation, and network instrumentation to record timing. Follow the automatic or manual setup for your framework.
Find eligible releases and scoped download links. Installation follows the artifact, platform, signing, and provisioning requirements.
Configure optional channel capabilities, audiences, consent, and delivery settings. Check the SDK guide for the supported app integration.
Connect supported places, geofences, and location events with the required OS permissions, consent, and host setup.
Apple 平台可选原生 Swift,Android 可选原生 Kotlin;.NET 支持 Android 与 Apple 平台、MAUI、Uno 和 Prism 集成;Dart 适用于 Flutter 移动端、Web 与桌面应用。
不必。Swift 和 Kotlin SDK 采用各自平台的原生开发方式,无需使用 C#。.NET SDK 适用于 .NET 原生移动应用、MAUI、Uno 和 Prism 集成,仅在使用 .NET 开发时引入。
有。Dart SDK 支持 Flutter 移动端、Web 和桌面应用,与原生及 .NET SDK 共用 AppPortal 应用模型。
是。无论由哪种受支持的 SDK 采集,事件、会话、崩溃、日志和发布版本都使用同一应用模型。
Crash capture, symbolication, lifecycle, and automatic instrumentation depend on the SDK, host, and setup. Check runtime and symbol support for native fatal crashes separately from handled errors. Flutter navigation, startup, and HTTP instrumentation are manual. Use the compatibility guide for your exact host.