Notifications Firebase still sent to disabled users - should be blocked to encourage overdue payment

Antonio Junior 5 hours ago

Looking at this check, disabled users still receive Firebase notifications for their vehicles (ignition, geofence, alarms, etc.):

But in practice notifications are still getting through to disabled users. In a billing scenario, this is a problem: if the user keeps getting all their vehicle notifications as normal even while disabled for non-payment, they have no incentive to pay the overdue invoice, since alerts feel unaffected.

if (user.getDisabled()) {
    LOGGER.info("User {} is disabled from receiving notifications, no message will be sent.", user.getName());
    throw new MessageException("User " + user.getName() + " is disabled from receiving notifications, no message will be sent");
}