I have written a javascript code, which contains all the necessary firebase database conditioning,on the basis of which I am sending push notifications using fcm
. I have hosted the script (index.html & firebase.js) on the firebase.
I want to schedule the script kept on server at every 30 minutes(it should run automatically), so that conditions written on script will be checked in every 30 minutes and push notifications will be sent automatically to the user.
Kinldy, help me to solve this issue.
Thanks.
I have heard of cron task. But I don't know how to implement this with the script.
I want that the push notification should be sent to the user based on the conditions that i have written in the script.
How to schedule this script on server side?