Send email, pushnotifications
npm install send-notificationssendEmail(html,mailGunApiKey, mailGunDomain, to, from, subject, attachments)
This will return a promise
first you have to call the initializePush which will take the following parameters
##### initializePush(serviceAccount, databaseURL)
#### serviceAccount can be downloaded from firebase when you create a project. An example of linking the service account is below
#### const serviceAccount = require("./notification-34434-firebase-adminsdk-g8kgu-4f1f3448b8.json")
#### databaseUrl can also be gotten from firebase also.
##### After initialization, then call the sendPushnotification with the following parameters
##### sendPushnotification: (firebaseToken, payload, options)
#### firebaseToken is the token generated from the device you want to send the push notification to. Check firebase documentation on sending push notificqtion
#### payload sample
const payload = {
notification: {
title,
body
}
};
#### options sample
const options = {
priority: 'high',
timeToLive: 60 60 24, // 1 day
};
#### check firebase push notification for more options
##### Happy coding!