I remember domino's in the 90s: 30 minutes or free! Back then (when the only food delivered was pizza) it was a joy for me to order.
It is curious, but there was big counterparty risk for the restaurant side since you pay only after delivery, meaning you could reject the pizza for many reasons (long delay, quality, not your ingredients, etc). Still, the experience was good for both parties and problems could always be solved by talking to the pizza guy, who was usually an employee of the pizza place.
Now the delivery apps (uber eats etc) and its payment methods act as escrows, which might prevent both parties from misbehave, however, all the trust has to be put in them.