PUSH NOTIFICATION IN FIREBASE NODE JS USING TOPIC
import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
export function pushNotifications(token: string, title: string, body: any) {
const registrationToken = token;
if (!registrationToken) {
return null;
}
const message = {
data: {
title: title,
body: body
},
token: registrationToken
};
return admin.messaging().send(message)
.then((response) => {
// Response is a message ID string.
console.log('Successfully sent message:', response);
})
.catch((error) => {
console.log('Error sending message:', error);
});
}

Best Casinos in South Africa - Choegocasino
ReplyDeleteSouth African casino 바카라 사이트 web site. South African 파라오 카지노 gambling sites are licensed by the KgG. Gambling 제왕카지노 sites will soon 메리트 카지노 be able 나비효과 to offer South African
NoVCasino Casino - NOVCASINO.COM
ReplyDeleteNoVCasino.com offers a no 온라인카지노사이트 deposit bonus nov카지노 사이트 of https://aprcasino.com/pluscasino/ 100% up to aprcasino.com €150. No Deposit Bonus is given to https://oncasinos.info/ new players only. No deposit bonuses expire