This plugin enables notifications to be sent from the Discourse server to OneSignal via their API. It’s a fork of an existing plugin but I’ve customised the notification text.
After the plugin has been installed, it needs to be configured with an admin account.