# Set Service Notification

Show a notification when the service is running.

{% hint style="warning" %}
Only for Android. When active, the service becomes a foreground service and gains higher priority!
{% endhint %}

Action available for the following operating systems:

![](/files/-MRyMmurYkr5sJQek1Ij)

### Parameters

* **Service** *\<numeric> -* Select a number for a service. Can be Dynamic or 1-10
* **Notification State** *\<numeric>*
  * 1 - Active - To make this service a foreground service.
  * 2 - Inactive - To make this service a normal service.
* **Play Sound** *\<numeric>*
  * 1 - Yes
  * 2 - No
* **Title** *\<string> -* Title of the notification associated with the service.
* **Body** *\<string> -* Body of the notification associated with the service.

{% hint style="info" %}
When a service in Android is set as a Foreground service, it will show in the system notification are permanently a notification with the **Title** and **Body** specified in this action parameters.
{% endhint %}

{% hint style="info" %}
For example if you are downloading synchronizing data for the user, you can do it in a Foreground Service, so this will continue to run, even if the user exits your App or switches to another App, and you can provide feedback to the user of the synchronization status in the notification area.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-others/set-service-notification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
