> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-docs-mcp-segmentation-tool-belt.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How Do You Show a Timer With a Progress Bar in Rich Push Notifications?

> Display a timer with a progress bar in Android rich push notifications using MoEngage. Includes template setup and required manifest permissions.

## Problem

The timer with a progress bar in rich push notifications is unable to be displayed on Android.

## Instructions

Perform the following steps:

1. On the left navigation menu in the MoEngage dashboard, click **Engage**, and then click **Campaigns**.
2. On the All campaigns page, click **Create new**.
3. On the **Create campaign** pane, under **Outbound**, click **Push** and then click a delivery type.
4. In Step 2, Content, select the **Timer with progress bar** template.
   <img src="https://mintcdn.com/moengage-docs-mcp-segmentation-tool-belt/zRW6xyT_cy4duKmT/images/moengage_e8d592.png?fit=max&auto=format&n=zRW6xyT_cy4duKmT&q=85&s=771be3a5e08f310e95ed449eb687aa26" alt="content edited.png" width="1280" height="681" data-path="images/moengage_e8d592.png" />
5. Work with the **Timer** section in this template, which synchronizes with the progress bar. <img alt="timer edited.png" src="https://mintcdn.com/moengage-docs-mcp-segmentation-tool-belt/oGYWz0Yu36hXGWHT/images/moengage_269fb4.png?fit=max&auto=format&n=oGYWz0Yu36hXGWHT&q=85&s=f4acb074864607994e03e1c6c9655531" width="1274" height="684" data-path="images/moengage_269fb4.png" />
6. Include the following permission in the Android Manifest.xml file before sending the test Push campaigns.

```xml Code theme={null}
  Android Manifest.xml
             
   <manifest xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:tools="http://schemas.android.com/tools">
       <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
   </manifest>
```

7. For Android 12 and above, request the SCHEDULE\_EXACT\_ALARM permission from the user and enable it using the following code:
   ```json Code theme={null}
   if (Build.VERSION.SDK_INT = Build.VERSION_CODES.S) {
       val alarmManager = ContextCompat.getSystemService(this, AlarmManager::class.java)
      if (alarmManager?.canScheduleExactAlarms() == false) {
           startActivity(Intent(Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM))
       }
       else {
       Toast.makeText(this, "Notification Permission already granted", Toast.LENGTH_LONG).show()
       }
   }
   ```
8. You can now view the rich push notification with the timer and the progress bar.
   <img alt="timer progress bar.png" src="https://mintcdn.com/moengage-docs-mcp-segmentation-tool-belt/W-gn6HWUtBpKHBRF/images/moengage_96b276.png?fit=max&auto=format&n=W-gn6HWUtBpKHBRF&q=85&s=58ee77e8616050202f62d19344551bc7" style={{ width:"39%" }} width="640" height="1429" data-path="images/moengage_96b276.png" />
