Commit 9556f740 authored by Ivan Tancara's avatar Ivan Tancara
Browse files

envio de notificaciones

parent 0eeea4c6
......@@ -2,7 +2,7 @@
const config = {
SECRET_TOKEN: 'AGETIC_SUPER_SECRET_',
autorizacion: 'AAAAi0s6FBw:APA91bGF_pnVmZRW0l7X7pgLvPcmbRL14HdoqzcklDxu6aO7z7ui7_JKofMf_U4LPO0xvkvVPleN8QIdVjIQ1WMvSLwV0I1R28QWzNaKdRAD7MBd31h2W9z_bf-p_AJg7I_22P67gIzy',
autorizacion: 'AAAAPEVgJjw:APA91bFN3ZmibnDgcs6YOyf8CgwxF0ZPkUlZvncHkuFsIozznmYAcvKRnR7rFyDIFpYdntMZzbzWj4QYtOXGjXdxmRt0R5jFfw15LCXASK9fJCqdoItWb4dcdiDRGifQUOeePDdyVq_v',
usuarios: [
{
usuario: 'admin',
......
......@@ -100,18 +100,14 @@ app.post ('/send', AuthorizationMiddleware, async function (req, res) {
'Content-Type': 'application/json',
},
data: {
notification: {
to: '/topics/all',
notification : {
body : text,
title: titulo,
text: text,
badge: 1,
sound: 'default'
badge: '1'
},
data: {
foo: 'bar'
},
priority: 'High',
to: ''
}
priority: 'High'
}
}
const repsuesta = await axios(init);
// const repsuesta = {};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment