notify-send ubuntu 20.04 in crontab code example
Example: cron not showing notifications
eval "export $(pgrep -u $LOGNAME gnome-session | head -n 1 | xargs -I{} cat /proc/{}/environ | egrep -z DBUS_SESSION_BUS_ADDRESS)";
/usr/bin/notify-send "Hey" "You've got a notification :-)"