0

I'm programming an event-based web app using javascript and firebase. What I want is 10 minutes before the start of the event a cloud message to the organiser. I suppose that I must add the notification immediately after the reservation has been added to the database but I have no idea what this "thing" must contain.

function AddEvent(){
//Event Added to firebase
//---Something to set a message with eventtime-10 minutes
}

I really appreciated it if someone can help me and also expand my knowledge.

Kind regards

JaDa-ma
  • 47
  • 8
  • 1
    You can do a firebase function that executes every minute, searching for events starting 10 minutes later, then inside it, you do what you want.. – Pipe Mar 23 '21 at 21:33
  • Does this also works when you don't use the app in the background? – JaDa-ma Mar 25 '21 at 20:29
  • yup, is executed on the firebase servers, not on the app – Pipe Mar 25 '21 at 20:32

0 Answers0