
步骤 2 注册 Service Service 也需要在应用配置文件中进行注册,注册类型 type 需要设置为 service。 { “module”: { “abilities”: [ { “name”: “.ServiceAbility”, “type”: “service”, “visible”: true … } ] … } … }

步骤 2 注册 Service Service 也需要在应用配置文件中进行注册,注册类型 type 需要设置为 service。 { “module”: { “abilities”: [ { “name”: “.ServiceAbility”, “type”: “service”, “visible”: true … } ] … } … }