Fixed Android channel id in RPN
MODIFY
src/notification/remote-push-notification/RemotePushNotificationTask.ts
src/notification/remote-push-notification/RemotePushNotificationTask.ts
@@ -344,7 +344,8 @@ export default class RemotePushNotificationTask implements NotificationTask {
title, body, user, { 'invoiceNumber': data.invoice.number.toString() }, severity);
}
- private async sendRemotePushNotificationToUser(tenant: Tenant, notificationType: UserNotificationType, title: string, body: string, user: User, data?: Record<string, string>, severity?: NotificationSeverity): Promise<void> {
+ private async sendRemotePushNotificationToUser(tenant: Tenant, notificationType: UserNotificationType,
+ title: string, body: string, user: User, data?: Record<string, string>, severity?: NotificationSeverity): Promise<void> {
// Checks
if (!this.initialized) {
return Promise.resolve();
@@ -404,15 +405,15 @@ export default class RemotePushNotificationTask implements NotificationTask {
sound: 'default',
badge: '0',
color: severity ? severity : NotificationSeverity.INFO,
- channelId: 'e-Mobility'
- }
- };
- // Extra data
- message.data = {
+ android_channel_id: 'e-Mobility'
+ },
+ data: {
tenantID: tenant.id,
tenantSubdomain: tenant.subdomain,
notificationType,
- ...data };
+ ...data
+ }
+ };
return message;
}
}

Fixed Android channel id in RPN