Interface AppNotificationHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canReceiveNotifications​(BasicUser user)
      Returns whether the app notifications are configured for the user and if it also has the required mediums to receive it (e.g an FCM registration token).
      If false no notifications will be sent to this specific user.
      boolean notify​(AppNotificationMessage notification)
      Sends (synchronously) a new app notification.
      void validate​(BasicUser user, Object medium)
      Validates the given medium used to send the app notification to the user.
    • Method Detail

      • canReceiveNotifications

        boolean canReceiveNotifications​(BasicUser user)
        Returns whether the app notifications are configured for the user and if it also has the required mediums to receive it (e.g an FCM registration token).
        If false no notifications will be sent to this specific user.
      • notify

        boolean notify​(AppNotificationMessage notification)
        Sends (synchronously) a new app notification.
        Returns:
        whether the notification was sent or not.