dhis2_android_configure_notifications
Configure push and local notifications for DHIS2 Android apps to alert users about sync status, data deadlines, and system messages using customizable triggers and settings.
Instructions
Set up push notifications and local notifications for DHIS2 Android app
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notificationTypes | Yes | Types of notifications to implement | |
| pushProvider | No | Push notification provider | |
| triggers | No | Notification triggers | |
| scheduling | No | ||
| customization | No |
Implementation Reference
- src/index.ts:1369-1379 (handler)The MCP server request handler for the tool. It invokes generateNotificationsConfiguration from android-generators.ts with the tool arguments and returns the generated Android notifications configuration as text content.case 'dhis2_android_configure_notifications': const notificationsArgs = args as any; const notificationsConfig = generateNotificationsConfiguration(notificationsArgs); return { content: [ { type: 'text', text: notificationsConfig, }, ], };
- src/android-generators.ts:1823-1829 (helper)The core generator function that creates a template for DHIS2 Android notifications configuration code, using the provided arguments (notably notificationTypes). Currently a stub implementation.export function generateNotificationsConfiguration(args: any): string { return `# DHIS2 Android Notifications Configuration Notification types: ${args.notificationTypes.join(', ')} ## Implementation details for notifications... `;
- src/permission-system.ts:166-166 (registration)Permission registration mapping the tool to the 'canUseMobileFeatures' permission in PermissionSystem.TOOL_PERMISSIONS.['dhis2_android_configure_notifications', 'canUseMobileFeatures'],