I can confirm that caffeine-indicator works fine on Ubuntu 18.04 in GNOME. Your problem is most likely with xdg-screensaver. Closing the bug.
I can confirm that caffeine-indicator works fine on Ubuntu 18.04 in GNOME. Your problem is most likely with xdg-screensaver. Closing the bug.