In this video I explain a simple solution to fixing the issue of cron jobs not showing notifications when using notify-send, this fix works for me on Ubuntu 18.04. Hopefully it helps! :)
Here's the code referenced in the video:
#!/bin/bash
eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ)";
/usr/bin/notify-send "NOTIFICATION" "hello i am finally working" -u critical -i face-monkey
Ещё видео!