How do push notifications work?

I’m curious how you got push notifications to work on iOS, especially given that you don’t require any plugin for Discourse to get it to work.

Also, does it cost you anything? Is there any risk of you needing to change push notifications to a paid feature?

We have our own push server, so yes, that has costs. No plans on removing it from free tier.