as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

Manifest [tasks] Section

The [tasks] section declares a small routine that can run at specific events during the lifecycle of the application package. At this time the Vega system supports the install event for running such tasks. This task can be used to set up other tasks before the application’s first launch. The task section is optional.

[tasks]
# task configuration

[[tasks.work]]

This subsection describes the task details.

Fields

  • id (string, required): This must refer to a task component id defined in the manifest. By convention, this is represented as <package_id>.<task_name>. The identifier string must follow the rules for package_id:
    • Allowed characters: uppercase letters A-Z, lowercase letters a-z, digits 0-9, dot . and underscore _.
    • Use reverse DNS notation <package_id>.<task_name>.
      id = "com.mycompany.smart_app.install_task"
    
  • mode (string, required): The package lifecycle event type when the declared task runs. Currently, the only supported event is install. Any other values are ignored.

      mode = "install"
    

Last updated: Sep 30, 2025