Open App
Open a specified iOS application via Spotlight search.
Interface Description
Interface Type
openAppParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
name | string | ✅ | Application name (supports fuzzy search, Chinese will be automatically converted to Pinyin for search) |
Return Value
javascript
true // Returns true on successful operationBasic Usage
Open Application
javascript
// Open WeChat app
await apiInvoke('openApp', {
deviceId: 'P72578581E07',
name: '微信'
});How It Works
This interface opens the application through the following steps:
- Invoke Spotlight
- Enter application name
- Automatically open the application