GithubHelp home page GithubHelp logo

migueltarga / flarum-ext-push-notifications Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blissfulplugins/flarum-ext-push-notifications

0.0 3.0 0.0 15 KB

License: Mozilla Public License 2.0

PHP 86.14% JavaScript 13.86%

flarum-ext-push-notifications's Introduction

Push Notifications for Flarum

Sends Flarum notifications as push notifications to mobile devices.

Introduction

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.

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.

Note that this plugin doesn't support HTML5 push notifications, which don't work on iOS.

Setup

You'll need to register for a OneSignal account, create an 'app', and configure whichever platforms you want.

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.

Next install the plugin, either editing your compose.json or running this:

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).

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.

Caveats

  • There isn't currently a way for users to configure which notifications are sent as push notifications. Flarum doesn't appear to have a way to hook into the notification configuration to add a new medium.
  • Flarum's handling of whether a notification should be sent or not seems to break sometimes, so notifications aren't always sent when they should be.

License

MPL v2.0

flarum-ext-push-notifications's People

Contributors

lucaspiller avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.