Are you using Samsung? It might have a different battery optimization settings that block notifications through websocket but if it's all default with Google it should use Googe Services for the notifications.
Second more basic issue is that you could have disabled them by mistake. Double check all permissions and settings of the app and of your system.