This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

应用使用

在 EAS Insights 的“应用使用情况”选项卡中查看你的应用在各个平台、应用商店版本和时间上的使用情况。


重要 应用使用 正处于 预览 阶段,可能会发生重大更改。在预览期间,使用是免费的。

应用使用标签提供了对项目性能、使用情况和覆盖面的概览。它允许你查看应用的状态,提供有关跨平台、应用商店版本和时间段的使用信息。

🌐 The App usage tab offers a view into a project's performance, usage, and reach. It allows you to see the state of your app, providing information about usage across platforms, app store versions, and timeframes.

与 EAS 更新集成

🌐 Integration with EAS Update

如果你已经在使用 EAS Update,你可以在无需任何额外客户端更改的情况下获得某些高级使用洞察。其工作原理是将你的应用已经发出的更新检查请求汇总成对不同时间和平台的使用情况的有限洞察视图。

🌐 If you're already using EAS Update, you get certain high-level usage insights without any additional client-side changes. This works by aggregating the update-check requests your app already makes into a limited Insights view of usage over time and by platform.

使用 expo-insights

🌐 Use the expo-insights library

开发者可以将 expo-insights 库添加到他们的项目中,从而获得比仅汇总更新请求提供的数据更精确的使用指标,以及按应用商店版本的额外细分。目前,该库仅限于发送与应用冷启动相关的客户端事件,但将来,expo-insights 将扩展以提供新类型的事件和负载,以支持更高级的功能。

🌐 Developers can add the expo-insights library to their projects and gain more precise usage metrics (than those provided by just aggregating update requests) and additional breakdowns by app store version. Currently, the library is limited to sending client events only pertaining to cold starts of the app, but in the future, expo-insights will expand to offer new types of events and payloads, to support more advanced functionality.

安装

🌐 Installation

要使用 expo-insights,请确保通过运行 eas init 将你的应用链接到 app config 中的 EAS 项目,然后安装该库。

🌐 To use expo-insights, make sure your app is linked to your EAS project in app config by running eas init, then install the library.

Terminal
# Install EAS CLI if you have not already
npm install --global eas-cli

# Initialize your project EAS if you have not already
eas init

# Install the library
npx expo install expo-insights

安装库后,通过 EAS本地 创建构建。库会在应用启动时自动将事件发送到 EAS Insights。

🌐 After installing the library, create a build either with EAS or locally. The library automatically sends events to EAS Insights when the app launches.

查看见解

🌐 View insights

要查看你的应用使用数据,请在 EAS 仪表板中打开你的项目,从导航菜单中选择 Insights,然后选择 App usage 标签。

🌐 To view usage data of your app, open your project in the EAS dashboard, select Insights from the navigation menu, and then select the App usage tab.