Config Management

FCM Notification Templates

Complete guide to managing FCM notification templates in Moyee - viewing, creating, testing, and sending push notifications to mobile users with dynamic variables.

Overview

The FCM Notification Templates menu displays all push notification templates used to send notifications to users' mobile applications. This feature allows you to create notification templates with dynamic variables such as {greeting}, {name}, {date}, and others.

The FCM Notification Templates page is located within the Dashboard Β» Config Management menu.

Template List Display

The template list page shows a table with the following columns:

  • No - Sequence number
  • Type - Notification type (identifier)
  • Title - Notification title
  • Body Template - Notification body template with placeholders
  • Description - Template usage description
  • Status - Template status (Active/Inactive)
  • Active - Toggle to activate/deactivate the template

Template Data

Here is an example of registered template data:

NoTypeTitleBody TemplateDescriptionStatusActive
1attendanceMoyee - My Employee (Attendance Reminder){greeting}, please complete your attendance first so your presence is recorded in the system. Thank you.Attendance reminder notification templateActiveπŸ”—
2update-profileMoyee - My Employee{greeting}! Don't forget to complete your profile data, so the system doesn't just know your name, but also knows who you are. Remember, complete profile = cooler at the office! πŸ˜ŠπŸ˜‰ Fill it now, don't wait!Profile update reminder notification templateActiveπŸ”—
3contract-expirationMoyee - My Employee (Contract Reminder){greeting}! A contract will expire in {days} days. Don't forget, because expired contracts can be troublesome! πŸ˜‚πŸ™‚Contract expiration reminder notification templateActiveπŸ”—

Total Data: 1–3 of 3

Search Feature

A search column is available to easily find templates by keyword.

How to use:

  1. Click on the search column
  2. Type the keyword you want to search for (based on type, title, or description)
  3. Search results will appear automatically

Display Options

Several options are available to customize the table display:

  • Columns - Select which columns to display
  • Filters - Filter data based on specific criteria
  • Export - Export data to file formats (CSV, Excel, etc.)

Rows per page

At the bottom of the page, there is a setting for the number of rows per page:

  • Rows per page: 25
  • Total data: 1–3 of 3

Adding a New Template

To add a new template, click the Create FCM Notification Template button. You will be directed to the template form page.

Create Template Form

The template form page displays a form for entering new template data.

Important Information:

Create templates for your push notifications. Use variables like {greeting}, {name}, {date}, etc. in body template for dynamic content.

Form Components:

ComponentDescriptionNotes
**Notification Type ***Identifier for the notification typeRequired, example: attendance, update-profile
**Notification Title ***Title that appears in the notificationRequired
**Body Template ***Body template with placeholders using {variable}Required
DescriptionDescription of this template's usageOptional
ActiveTemplate active statusCheckbox

Available Placeholders:

  • {greeting} - Greeting (e.g., Hello, Good morning)
  • {name} - User name
  • {date} - Date
  • {days} - Number of days (for contract reminders)
  • And other custom variables as needed

How to Fill the Form:

  1. Notification Type
    • Enter a unique identifier for the notification type
    • Use lowercase letters and hyphens (kebab-case)
    • Example: attendance, update-profile, contract-expiration
  2. Notification Title
    • Enter the notification title that will appear on the user's device
    • Example: Moyee - My Employee (Attendance Reminder)
  3. Body Template
    • Enter the notification body template
    • Use {variable} placeholders for dynamic content
    • Example: {greeting}, please complete your attendance first so your presence is recorded in the system. Thank you.
  4. Description (Optional)
    • Enter a description of the template's usage
    • Example: Attendance reminder notification template
  5. Active
    • Check if you want the template to be immediately active
    • Active templates will be used for sending notifications
  6. Click Create to save the template
  7. Click Cancel to cancel

Test Notification

The Test Notification feature is used to test templates before widespread use.

Template Information

The top of the page displays information about the template being tested:

FieldExample
Typeupdate-profile
TitleMoyee - My Employee
Body Template{greeting}! Don't forget to complete your profile data, so the system doesn't just know your name, but also knows who you are. Remember, complete profile = cooler at the office! πŸ˜ŠπŸ˜‰ Fill it now, don't wait!
DescriptionProfile update reminder notification template

Send To

Notification sending method options:

MethodDescription
TopicSend to all devices subscribed to a specific topic
Device TokenSend to a specific device based on token

Topic Type

If selecting the Topic method, choose the topic type:

  • Employee ID - Topic based on employee ID
  • Employee Code - Topic based on employee code
  • User ID - Topic based on user ID
  • Project Code - Topic based on project code

EMPLOYEE ID

Field to enter the target employee ID:

Notification will be sent to all devices subscribed to this employee id topic

Variables (JSON)

Optional field to provide variable values used in the template:

{
  "greeting": "Hello Sir/Madam",
  "name": "Jahid",
  "date": "20 February 2026"
}

{
  "greeting": "Dear Employee",
  "name": "Muhammad Jahidin",
  "days": "7",
  "date": "2026-02-27"
}
Copyright Β© 2026