dev-master
9999999-dev
MPL-2.0
The Requires
Sends Flarum notifications as push notifications to mobile devices., (*1)
By default Flarum only sends notifications via email and displays them within the forum. To increase engagement, this plugin adds support for sending them to mobile devices as push notifications., (*2)
It uses the OneSignal service, which is free and supports native push notifications on all the major mobile platforms. You'll need a mobile application in order to receive the notifications - a sample built in PhoneGap is available here., (*3)
Note that this plugin doesn't support HTML5 push notifications, which don't work on iOS., (*4)
You'll need to register for a OneSignal account, create an 'app', and configure whichever platforms you want., (*5)
Note that for Apple, you need a paid iOS developer account to test notifications. You can test for free with Android using the emulator, although it's a bit complicated to get everything setup correctly as you need Google Play Services which aren't included by default. This is a good tutorial on setting that up with the GenyMotion emulator., (*6)
Next install the plugin, either editing your compose.json
or running this:, (*7)
composer require BlissfulPlugins/flarum-ext-push-notifications
Then login as an administrator and enable the 'Push Notifications' plugin, go to the settings and fill out the details of your OneSignal account (from App Settings -> Keys & IDs)., (*8)
Once a user has setup the app, they'll then receive all their notifications as push notifications on their mobile device. The URL for the post or discussion is included as an extra attribute in the notification, you can use this so when a user clicks on a notification it opens Flarum in their browser., (*9)
MPL v2.0, (*10)
MPL-2.0