hey i have make a refer system in my app but there is a problem in my app. when any user refer another person and he join my app. he get rewards instantly but i want to give the reward him. After when the Reffered user use my app for 3 days . Can i do this with clock component?
If you have any idea please say me immediately . it is a request .
Yes, you can use the clock. No, you can’t do it with only the clock. You want to make sure the other user uses your app for 3 days, not that 3 days have passed since the invite. You shouldn’t use a countdown for this.
Instead, use a Firebase Database and set a Clock to go off every 20 seconds. Turn “Always Fire” off. And whenever the timer goes off, get a list in the Firebase Database. If today’s date isn’t already in there, add it. And have a seperate list for each email. (You need some way to tell the user who downloads the app was from an invite.) When 3 list items are in the list for the invited person, do the reward.
Blocks will be edited in soon.
Put some effort into it. People is already doing the job for you, because you don’t want to think. And is not about not wanting to share it with you. It about learning: If you do the blocks by yourself, you may start understanding better how to do it yourself.