Through Apple and Google's push services, coordinated by your backend: device token management, notification templates, delivery scheduling and user preferences. The engineering is straightforward; the product discipline of not spamming users is the hard part.
Have a question specific to your product?
Share the context and I will reply with a practical next step.