Settings: FCM Tester (Push Notification Testing)
Purpose
FCM Tester sends Firebase Cloud Messaging (FCM) push notifications for testing.
Access
- Login required.
- Typically Owner/Admin.
Target Options
You can choose how to target the notification:
- Token: send to a single device token
- All: send to all users
- Role: send to a role/group
- User: send to a specific user
- Topic: send to a topic (default often
all-users)
Notes:
- For Role/User modes, target lists are fetched from the server and can be refreshed with Reload.
- If targets aren’t loaded yet, the app may load them automatically when the screen opens.
Message Fields
- Title — required
- Body — required
- Data JSON — optional
Must be valid JSON, example:{\"foo\":\"bar\"}.
Sending Steps
- Pick a target mode (Token/All/Role/User/Topic).
- Fill the target details:
- Token: enter the FCM token
- Topic: enter the topic name
- Role: pick a role
- User: pick a user
- Enter Title and Body.
- (Optional) enter Data JSON.
- Tap Send.
On success:
- The response appears below (usually JSON).
On failure:
- An error message appears (for example “Invalid JSON” or a server error).
Reset Button
Reset returns the target selection and message form back to the initial state.