Push notifications will allow you to send notifications to your BLOX Now app to drive traffic back to your site.
Firebase
Setting up push is a two-part process. First you must set up Google Firebase Cloud Messaging and then connect that in the Blox Notifier application. For information on setting up your firebase account, see https://console.firebase.google.com/u/0/.
- In Firebase, under SERVICE ACCOUNTS, create a key (JSON file). This file will be imported into the BLOX admin.
- In BLOX CMS, under the applications menu, go to Community / Notifier, then open Application settings by clicking on the gear icon found in the top right of the screen.
- Under Push Notifications, click Upload for the Google Service Role Access File and select the JSON file you created in Firebase.
- Next, back in Firebase, under CLOUD MESSAGING, copy the Token (the 2 lines of alphanumeric letters/numbers).
- In BLOX CMS in Community / Notifier / Application settings / Push Notifications, paste the token in the Google Desktop Notification API Key.
- In Firebase, copy the Sender ID number (appx 12 digits).
- In BLOX CMS, in Community / Notifier / Application settings / Push Notifications, paste the number in the Messaging Sender ID.
- Finally we need to set up the service(s) to tie to the Notifier channels. Still under Community / Notifier / Application settings / Push Notifications, click the + button. Type "breaking" in the Topic ID and "Breaking News Alerts" in the Label field. If you set up multiple services, your users can sign up for different push alerts via the app (e.g. Breaking News, Weather Alerts, Sports Updates, etc). The "Label" field text is what will display to your app users.
- When you finished, click Save.
- Refresh the Notifier application (this is currently required because the Firebase Target won't show up when creating a new channel unless you first refresh).
For more information on Notifier Push Notifications, go here.
Channel Setup
Now we need to set up a new channel in Notifier.
- In Notifier / Application settings / Channels click New.
- Give your new channel a Name.
- Disabled will allow you to disable the channel until you are ready to use it.
- In Targets select the Push Notification service you wish to use. This would be the Google Firebase Cloud Messaging service (Push Notification: Breaking News Alerts in this example).
- Click Save. This will save your changes and close the popup. Cancel will exit the popup without saving your changes.
For more information on setting up Channels in Notifier, including setting up automatic alerts, go here.
Badge indicator
The badge on your device's home screen will display an icon (on the right) if you have a new push notification. After the push notification has been accessed the badge will clear (on the left).