@marcus Oh, it is a tricky trick! Mastodon supports web push notifications, and I have a relay set up that works as a web push endpoint and just forwards the (encrypted) payload to APNS. Then a notification extension in Toot! decrypts the notification and updates the content.
If you are interested in the technical details, see https://github.com/DagAgren/toot-relay