as

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

Service Registrar

The Service Registrar is an application framework component that's responsible for managing connections between apps and services. Starting in v0.11, Vega enforces the Service Registrar on all apps. You must add permissions for each service your app uses in the manifest.toml file.

Add services to your manifest

If you use a service available on the system, you must add the service that you want to use in your package's manifest.toml. The following example shows what adding a service might look like.

Copied to clipboard.

[[wants.service]]
id = "com.amazon.example.service"

This tells the framework that your package wants to use the com.amazon.example.service service. The service provides you with this information in its documentation.

After you add the service to your manifest, you can use the service's client library as normal. The Service Registrar handles connection establishment and management for you.

Error example

If your app uses a service that you didn't declare on your manifest, you will receive an error when starting your app.

The following example log message means the app has not properly declared the bluetooth service-dependency in the app manifest.

Copied to clipboard.

Feb 26 04:19:15.254637 amazon-f2b1c64743e08979 local0.err servicergrd[998]: 1183 E servicergrd: aipc_request{cid=“63fe86775278f39d”, request=ConnectToService(com.amazon.bluetooth.service)}: missing [[wants.service]] manifest declaration, id=“com.amazon.mm.oobe”, service_name=“com.amazon.bluetooth.service”

Last updated: Sep 30, 2025