you’re right, although cash basis would only fly under GAAP if you earn revenue at the time of cash receipt. In other words, anyone collecting money for services not immediately rendered (any subscription service) should be accrual
The difference is that you can recognize the revenue on receipt of the cash, but at the same time, you also recognize the liability to deliver the service (based on COGS etc for the liability).
The liability reduces as you expense (and actually pay on a cash basis) the cost of supplying the service.
At least that's my non-accountant idea of how it works.
I may be completely wrong.