A Rock transport for OneSignal. Allows notifications to enabled devices through the OneSignal service.
If you are on a stable version of Rock (you update Rock from the button in the UI) there are two ways to get the OneSignal transport installed:
1. Download the Apollos Project OneSignal Transport from the Rock Shop. This is the recommended way to get the plugin.
- Head to the Rock Shop inside your Rock installation.
- Go to the "Communications" category and find the "Apollos Project OneSignal Transport" plugin.
- Install it (it's free!).
- Follow the setup instructions found in the store or below under
Rock Setup
.
- Clone down the
apollos-onesignal
repo here. - Go into the
Versions
folder and copy theapollosProject.OneSignal.dll
from the correct folder for your version of Rock. - Paste it in the
Rockweb/Bin
folder of your Rock instance. - Go into the
bin
folder of theapollos-onesignal
repo and copy theApollos.OneSignal.RestAPIv3.Client.dll
file. - Paste it in the
Rockweb/Bin
folder of your Rock instance. - Follow the setup instructions found below under
Rock Setup
.
- Clone down the
apollos-onesignal
repo here. - Put the
apollos-onesignal
folder in the same folder as yourRock
folder. They should be co-located together. - In your Rock solution, add the
apollos-onesignal
project. - Right-click on your Rock solution and choose
Project Build Order
from the menu. - Go to the
Dependencies
tab, choose theapollos-onesignal
project from the dropdown, and click the checkboxes to makeRock
andRock.Common
dependencies. This will ensure that in your build tool thatapollos-onesignal
won't be built until afterRock
andRock.Common
. This is important becauseapollos-onesignal
depends on those two projects. - Now you can run
Clean Solution
andRebuild Solution
and everything should just build. Also, when you push changes, your build tool of choice should work as well!
- Inside Rock, go to
Admin > Communications > Communication Transports
. - You should see an option for One Signal. If not, you may need to restart your Rock server. Either way, Rock should detect that the new DLL is there and automatically add the transport to the list on that page. Click on that transport.
- You will need to change the
Active
flag toYes
and add the One SignalApp Id
andREST API Keys
. You can find these on the OneSignal website on theSettings
page underKeys & IDs
.
- Go to
Admin > Communications > Communication Mediums
. - Click on
Push Notifications
- Make sure the
Active
flag is set toYes
and set theTransport Container
toOne Signal
.
Now you’re all set to send push notifications through Rock!