Good day, please I have something to achieve.
I am working on a dispatch app and when a request is made, I want to get the closest 5 riders and assign the request to them.
I will take the first rider and send a notification to him, If he accepts, then that’s all but if he declines, I send to the next rider; but if he doesn’t accept or decline after 3 minutes, I will move to the next rider.
I am able to get everything to work except for the part of “if he doesn’t accept or reject after 3 minutes, I will move to the next rider”.
Any solution to this?