This repository is as the name says, an application Skeleton totally abstracted to implement easily your own PushNotification
system using firebase
or any other PushNotification service.
Part of the idea of this skeleton have come from this Medium Post by @jovmit and .
-
MessagingController
is responsible for resolvingPushNotificationItem
. It also decides if the notification should be managed or not. Check the flow: -
PushNotificationManager
checks theType
of our current notification based on a tag in theBody
of the notitication, after that, it calls theNotificationItemResolver
which recieves the notification.
-
PushNotificationItem
is a sealed class with the possibleNotitication
types of our application, inside we will decide the text of the notification, the channel and everything. -
Finally the
PushNotificationManager
with the givenPushNotificationItem
will call thePushNotificationBuilder
which will build the androidNotification
and show it in his respective channel.
And thats all, and easy and well abstracted flow to make our notification work quite easy! Hope that you will enjoy it aswell!