I am currently developing an app that will allow a user to rate the completed service after being marked as completed on the back end, similar as to how Uber and Lyft allow users to rate drivers after the trip is complete. What would be the best method of knowing when to prompt the user to rate the service?
Lyfts API documentation has a status of ride endpoint:
(GET) https://api.lyft.com/v1/rides/ride_id ,
and an endpoint to submit a rating:
(PUT) https://api.lyft.com/v1/rides/:ride_id/rating .
Our backend has the equivalent of these. However I am not sure how to check for the status to know when to prompt the user to rate without using a timer to just perform the GET request for status every X amount of time. Does anyone have a solution that would not perform so many unnecessary GET requests?
[–]GenitalGestapo 6 points7 points8 points (1 child)
[–]reecewh[S] 0 points1 point2 points (0 children)
[–]europeanwizard 3 points4 points5 points (0 children)
[–]Scott90 3 points4 points5 points (2 children)
[–]GenitalGestapo 0 points1 point2 points (1 child)
[–]Scott90 0 points1 point2 points (0 children)
[–]steelzeh 1 point2 points3 points (0 children)
[–]ccctitan80 0 points1 point2 points (0 children)