了解如何发送无线更新以向用户推送关键错误修复和改进。
你可以向用户发送包含关键错误修复和改进的无线更新。
¥You can send over-the-air updates containing critical bug fixes and improvements to your users.
¥Get started
要设置更新,请运行以下 EAS 命令行接口 命令:
¥To set up updates, run the following EAS CLI command:
-
eas update:configure
命令完成后,你需要进行新构建,然后才能继续下一部分。
¥After the command completes, you'll need to make new builds before continuing to the next section.
¥Send an update
要发送更新,请运行以下 EAS 命令行接口 命令:
¥To send an update, run the following EAS CLI command:
-
eas update --channel production
此命令将创建一个更新,并将其提供给配置为在 production
通道上接收更新的应用版本。此通道在 eas.json 中定义。
¥This command will create an update and make it available to builds of your app that are configured to receive updates on the production
channel. This channel is defined in eas.json.
你可以通过强制关闭应用并重新打开两次来验证更新是否有效。更新应在第二次启动时应用。
¥You can verify the update works by force closing the app and reopening it two times. The update should be applied on the second launch.