This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
qr.expo.dev
有关二维码生成器的参考,请访问 qr.expo.dev。
qr.expo.dev 是一个生成带有 Expo 标志的二维码的云功能。此功能为 EAS Update 创建二维码,这些二维码用于在 开发构建 和 Expo Go 中预览更新。
🌐 qr.expo.dev is a cloud function that generates Expo-branded QR codes. This function creates QR codes for EAS Update, which are used to preview updates in development builds and Expo Go.
例如,如果你和你的团队有一个开发版本,并且你想要在特定版本的通道上加载最新更新,你可以转到以下端点生成二维码:
🌐 For example, if you and your team have a development build, and you'd like to load the latest update on a specific build's channel, you could go to the following endpoint to generate a QR code:
https://qr.expo.dev/eas-update?projectId=your-project-id&runtimeVersion=your-runtime-version&channel=your-channel
这将生成以下二维码 SVG:
🌐 Which would produce the following QR code SVG:
此二维码代表以下 URL:
🌐 This QR code represents the following URL:
exp+your-slug://expo-development-client/?url=https://u.expo.dev/your-project-id?runtime-version=your-runtime-version&channel-name=your-channel
此 URL 将深度链接到开发版本并指示它在指定通道上获取最新更新。
🌐 This URL will deep link into a development build and instruct it to fetch the latest update on the specified channel.
信息 如果分享网址更方便,你可以通过在查询参数中添加
format=url来直接请求网址。
常规
🌐 General
以下参数适用于 /eas-update 端点。
🌐 The following parameters apply to the /eas-update endpoint.
基本查询参数
🌐 Base query parameters
以下基本查询参数可以与对 /eas-update 的任何请求一起使用。
🌐 The following base query parameters can be included with any request to /eas-update.
| 参数 | 必填 | 默认值 | 描述 |
|---|---|---|---|
slug | exp | 使用 slug 从 应用配置 目标开发构建。否则使用 "exp" 以目标 Expo Go。 | |
appScheme (已弃用) | exp | 被 slug 替代。改用 slug。 | |
host | u.expo.dev | 处理更新请求的服务器主机名。 | |
format | svg | 默认情况下,端点返回 SVG。要接收纯文本 URL,请使用 url。 |
按设备特性更新
🌐 Update by device traits
预览版和生产版构建会使用 runtimeVersion 和 channel 属性向 EAS 更新服务发出请求。你可以使用以下查询参数来模拟此行为:
🌐 Preview and production builds make requests to the EAS Update service with runtimeVersion and channel properties. You can emulate this behavior with the following query parameters:
| 参数 | 必填 | 描述 |
|---|---|---|
projectId | 项目的 ID | |
runtimeVersion | 构建的 运行时版本 | |
channel | 构建的渠道名称 |
示例
🌐 Example
https://qr.expo.dev/eas-update?projectId=your-project-id&runtimeVersion=your-runtime-version&channel=your-channel
按 ID 更新
🌐 Update by ID
你可以为特定更新创建二维码,并为其指定平台特定的 ID。
🌐 You can create a QR code for a specific update given its platform-specific ID.
| 参数 | 必填 | 描述 |
|---|---|---|
updateId | 更新的ID |
示例
🌐 Example
https://qr.expo.dev/eas-update?updateId=your-update-id
按组 ID 更新
🌐 Update by group ID
你可以为更新组创建二维码,并指定更新的组 ID。
🌐 You can create a QR code for an update group given the update's group ID.
| 参数 | 是否必填 | 描述 |
|---|---|---|
projectId | 项目的ID | |
groupId | 更新组的ID |
示例
🌐 Example
https://qr.expo.dev/eas-update?projectId=your-project-id&groupId=your-update-id
按分支 ID 更新
🌐 Update by branch ID
你可以使用分支 ID 创建二维码,它将返回该分支上可用的最新更新。
🌐 You can create a QR code with a branch's ID, which will return the latest update available on that branch.
| 参数 | 必填 | 描述 |
|---|---|---|
projectId | 项目的ID | |
branchId | 分支的ID |
示例
🌐 Example
https://qr.expo.dev/eas-update?projectId=your-project-id&branchId=your-branch-id
按渠道 ID 更新
🌐 Update by channel ID
你可以使用通道 ID 创建二维码,它将返回映射到该通道的一个或多个分支上可用的最新更新。
🌐 You can create a QR code with a channel's ID, which will return the latest update available on the branch or branches that are mapped to that channel.
| 参数 | 必填 | 描述 |
|---|---|---|
projectId | 项目的ID | |
channelId | 通道的ID |
示例
🌐 Example
https://qr.expo.dev/eas-update?projectId=your-project-id&channelId=your-channel-id