For the complete documentation index, see llms.txt. This page is also available as Markdown.

Schedule Actions

A Launcher automation feature that schedules tasks to run automatically at a designated time, date, or recurring interval.

Overview

Use Schedule Actions to automate tasks within your launcher. You can set specific apps to open, adjust volume, reboot the device, or run custom intents automatically at a designated time, date, or recurring interval.

Schedule Actions is disabled by default. It is enabled by adding a schedules object to the Launcher configuration, which can contain multiple custom-named schedule objects (e.g., “schedule1”, "deviceReboot", "AdjustVolume", etc.)

User Guide

  1. Add a schedules object to the Launcher configuration.

  2. Define a schedule object to set the timing and registration criteria.

  3. Define an execution object to specify the actions and runtime conditions.

Configuration

schedules

To enable Schedule Actions, add a schedules block to the Launcher's JSON configuration file.

The base-level key-value pairs of the scheduled configuration include:

Field
Description

<name>

String. Any descriptive name to easily identify the action. For instance "deviceReboot" and "AdjustVolume" in the Full Example.

schedule

Object. Collection of parameters to define the timing of the actions.

execution

Object. Collection of parameters to define the content of the actions.

In the launcher.json file, these are arranged:

Configuring a schedule Object

The schedule object defines the frequency of the task and the criteria required to register the schedule on the device. The schedule object consists of the following parameters:

Field
Description

hour

String. Set the hour (use 24-hour time, e.g. "13" for 1 pm) that the scheduled action should occur.

minute

String. Set the minute that the scheduled action should occur.

dayOfWeek

String. Set the numeric value of the day of the week (starting with "1" for Monday to "7" for Sunday) that the scheduled action should occur.

day

String. Set the day of the month ("1" through "31") that the scheduled action should occur.

month

String. Set the numeric value of the month (e.g. "4" for April) that the scheduled action should occur.

year

String. Set the year that the scheduled action should occur.

frequency

String. The recurrence rule: "onetime", "minutely", "hourly", "daily", "weekly", "monthly".

criteriaToSchedule

Object. Conditions evaluated before the schedule is registered. If these fail, the timer is never set. For details, see the Criteria documentation.

Configuring an execution Object

The execution object defines what happens when the scheduled time arrives. The execution object consists of the following parameters:

Field
Description

customIntent

Object. The payload to execute. Contains an action string, a typeIntent (e.g. "p" for platform actions), and other optional parameters.

For the full list of supported action strings, refer to the Custom Intents Platform Actions. For the full list of supported parameters, see Key-Value Pairs.

retryMissedAlarm

Boolean. If true, the launcher will re-attempt to fire a missed action due to failed execution. Default value is false.

retryAfterMinutes

Integer. The delay (in minutes) before attempting a retry if the initial execution criteria failed or the alarm was missed. Default value is 5.

criteria

Object. Real-time conditions evaluated at the exact moment the schedule fires. If false, the action is skipped. For details, see the Criteria documentation.

Full Example

An example of a full configuration for two Schedule Actions, "deviceReboot" and "AdjustVolume":

Schedule Actions was introduced in Launcher 4.4.32.

Last updated