This addition will allow use of the Notification service class throughout the rest of the server.
.env file will need to be updated with ONESIGNAL_API_SECRET & ONESIGNAL_APP_ID
sendNotification('this is a test', 'message', ['<target_uid>']);
Opportunities to expand
Notifications were currently be sent as separate individual notifications. If we would like to group them together we could do so via Notification Stacking on Android
OneSignal Notification Service Class Integration
This addition will allow use of the Notification service class throughout the rest of the server. .env file will need to be updated with
ONESIGNAL_API_SECRET
&ONESIGNAL_APP_ID
sendNotification parameters (.../services/onesignal/index.ts)
title
- string which will be notification headingmessage
- string which will be notification contenttarget_user_ids
- array ofuser_id
stringsExample:
Opportunities to expand
Notifications were currently be sent as separate individual notifications. If we would like to group them together we could do so via Notification Stacking on Android