Mastodon natively supports the Web Push API. You can utilize the same mechanisms for your native app. For a reference, see Mozilla's web push server, and more practically, see:
The relevant parts of the Mastodon REST API are:
GET|POST|PUT /api/v1/push/subscription
(Documentation)- You need to request authorization for the
push
scope from the user to be able to use that API