How does cloud messaging work "ungoogled"?

How can cloud messaging work “ungoogled”? Don’t the notifications run via Google servers?