Push Service

Service that sends push notifications via Firebase or Expo.

Will handle registration of devices and can target individual users when sending messages.

The users id is used as identifier.

Is capable of handling all platforms that Firebase and/or Expo supports, but so far only iOS and Android has been tested.

Push service provides HTTP endpoints and service endpoints to register device tokens for a user.

Endpoints

http.post.notifications.register

Registers a device to a user.

http.post.notifications.unregister

Unregisters a device from a user.

push-service.send

Sends a push notification to one or many users.

Example request:

{
  "badge": "12",
  "body": "Rambo Dreadlock sent you a friend request",
  "clickAction": "OPEN_FRIENDS",
  "data": {
    "message": "Yo!"
  },
  "sound": "default",
  "title": "Lorem ipsum",
  "to": [
    "49e2f5d6-b0c1-415b-99c8-996d18cb1e1b",
    "a999dd16-3813-4d55-8167-976810b6b024"
  ]
}

push-service.unregister

push-service.send-grouped-notification

push-service.send-notification

push-service.process-grouped-notification-timeouts

push-service.get-logs