> For the complete documentation index, see [llms.txt](https://docs.bluefletch.com/bluefletch-enterprise/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bluefletch.com/bluefletch-enterprise/product-guides/support-application/features/application-usage-history.md).

# Application Usage History

## Overview <a href="#overview" id="overview"></a>

Support Application provides a method for requesting a date range of Application Usage information from a device. The usage information will be reported using the event **appusage\_history**. The event data will contain all applications used within the specified date range and the duration of time the applications were visible to the end user. This feature is supported on devices running Android 10 or above.

## User Guide

1. To generate the usage history event, you need to send an intent action of `com.bluefletch.ems.support.ACTION_APPUSAGE_HISTORY`.
2. Include intent extras for 'begin' and 'end' to define the desired reporting range for the request.
3. Use the format 'YYYY-MM-DD' (e.g., '2023-02-06') for both 'begin' and 'end' dates.

## Feature Configuration <a href="#feature-usage" id="feature-usage"></a>

To set up Application Usage History for a particular device profile or device group, please follow the steps below:

### **Configuring with ADB Command**

To generate and provide the application usage information for the specified date range with ADB, use the following example as a guide:

```json
adb shell am broadcast -a com.bluefletch.ems.support.ACTION_APPUSAGE_HISTORY -p com.bluefletch.ems.support --es begin "2023-01-01" --es end "2023-01-31"
```

### **Configuring with AirWatch Command**

To generate and provide the application usage information for the specified date range with AirWatch, use the following example as a guide:

```json
mode=explicit,action=com.bluefletch.ems.support.ACTION_APPUSAGE_HISTORY,package=com.bluefletch.ems.support,extraString=begin=2023-01-01,extraString=end=2023-01-31,broadcast=true
```

### **Configuring with SOTI Command**

To generate and provide the application usage information for the specified date range with SOTI, use the following example as a guide:

```json
sendintent -a "intent:#Intent;action=com.bluefletch.ems.support.ACTION_APPUSAGE_HISTORY;component=com.bluefletch.ems.support;S.begin=2023-01-01;S.end=2023-01-31;end;"
```

{% hint style="info" %}
Application Usage History was introduced in Support Application 5.15.x.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bluefletch.com/bluefletch-enterprise/product-guides/support-application/features/application-usage-history.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
