# Checking for Target App on Device

The SDK allows you to determine whether a target app is installed on a device. The Host App can use this information to prevent recommending target apps that the user has already installed.

To get the installation status of a target app on a device, call the [`getApplicationDetails()` method](https://docs.digitalturbine.com/dt-ignite/ignite-services/sdk-reference/check-for-app-on-device).

{% @mermaid/diagram content="sequenceDiagram
autonumber
participant Host as Host App
participant SDK as Ignite

```
Host->>SDK: Initialize and Authenticate
Host->>SDK: getApplicationDetails()

opt callback and/or broadcast
    SDK-->>Host: onSuccess(result: AppDetailsResponse)
    SDK-->>Host: onError()
end

Host->>SDK: Disconnect" %}
```

| SEQUENCE ITEM | DESCRIPTION                                                                                                                                                                                                                                                                                                                                                                           |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1             | <p><strong>Initialization and Authentication</strong><br>The Host App initializes the DTIS SDK and connects to Ignite. This action establishes a secure connection between the two components and authenticates the Host App with Ignite. For more information, see <a href="../sdk-reference/connect-to-ignite">Connect to Ignite</a>.</p>                                           |
| 2             | <p><strong>Get Installation Status</strong><br>The Host App calls the <a href="../sdk-reference/check-for-app-on-device"><code>getApplicationDetails()</code> method</a> to retrieve the installation status of the target app on the device. The call contains the name of the target app you want to check as well as the option to receive results as a callback or broadcast.</p> |
| 3-4           | <p><strong>Installation Status Notification</strong><br>Ignite sends a callback and/or broadcast containing the installation status.</p>                                                                                                                                                                                                                                              |
| 5             | <p><strong>Disconnect from Ignite</strong><br>Disconnect from Ignite Services. For more information, see <a href="../sdk-reference/disconnect-from-ignite">Disconnect from Ignite</a>.</p>                                                                                                                                                                                            |
