Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

130
Vistas
How can I deploy a scheduled firebase function?

I have developed an app in Android studio and now I want to deploy a scheduled firebase function. My app contains various users and each user have a node named "clicksRemain", I want that after every 24 hours the value of this node may be reset to 0. Please have a look at the attached snapshot of my real-time database. enter image description here

I I have written the following function and it's not working. Please help. Note: I am using firebase real time database.

const functions = require("firebase-functions");
const admin = require('firebase-admin');
admin.initializeApp();

const database = admin.database();

exports.scheduledFunction = functions.pubsub.schedule('* * * * *').onRun((context) => {
  
    database.ref("Users/clicksRemain").update({"Users": admin.database.Timestamp.now()});
    return   console.log('Successfull timer update');;
  });
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda