Skip to main content

Close Mobile App

Command description​

Close the specified app immediately without using the recent-apps screen. An Android package name is a dot-separated identifier; for example, Douyin uses com.ss.android.ugc.aweme. You can find an app's package name in the device's application settings.

You can also capture an element from the mobile app and view its package attribute in the element editor.

Command Input Parameters​

input parametersInput parameter typeDescription
Mobile Device ObjectPhoneConnected mobile object
App Package NamestrAndroid package name of the app to close, such as com.ss.android.ugc.aweme

Command Output Parameters​

None

Type definition reference​

tip

Enable Developer options on the mobile device, then connect it to the computer with a USB cable. See Connect Mobile Device

FAQ​

See Mobile Automation FAQ