dhis2_android_configure_notifications
Configure push, local, and in-app notifications for the DHIS2 Android app, including triggers like sync completion, reminders, and system messages, with provider options and customization for sound, vibration, and LED.
Instructions
Set up push notifications and local notifications for DHIS2 Android app
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customization | No | ||
| notificationTypes | Yes | Types of notifications to implement | |
| pushProvider | No | Push notification provider | |
| scheduling | No | ||
| triggers | No | Notification triggers |
Implementation Reference
- src/index.ts:1369-1379 (handler)Main tool handler in the MCP server switch statement. Calls generateNotificationsConfiguration with input args and returns markdown configuration.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-1830 (helper)Generator function that produces the notifications configuration markdown based on input args. Currently a stub with placeholder content.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)Tool permission mapping: requires 'canUseMobileFeatures' permission to access.['dhis2_android_configure_notifications', 'canUseMobileFeatures'],