# Background Running
Run the app in the background.
# Manifest Declaration
You need to declare the use of this API in the manifest's features
member:
{"name": "system.resident"}
Usage note
Also, you need to indicate the services that may be active in the background by specifying the services in the config.background
member of the manifest. Read all the details in the section Services Running in the Background.
# Module Import
Before using this service in a component, you need to import the module in the script section of the UX document.
import resident from '@system.resident'
Or
let resident = require("@system.resident")
# Methods
This service has the following methods:
# start()
This method sends an app to the background.
Example:
resident.start({
desc: ' '
})
# stop()
Stops an app from running in the background.
Example:
resident.stop()
← App Context Logging →