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 .
-
MessagingControlleris responsible for resolvingPushNotificationItem. It also decides if the notification should be managed or not. Check the flow: -
PushNotificationManagerchecks theTypeof our current notification based on a tag in theBodyof the notitication, after that, it calls theNotificationItemResolverwhich recieves the notification.
-
PushNotificationItemis a sealed class with the possibleNotiticationtypes of our application, inside we will decide the text of the notification, the channel and everything. -
Finally the
PushNotificationManagerwith the givenPushNotificationItemwill call thePushNotificationBuilderwhich will build the androidNotificationand 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!
