(If you go through a recruiter, you might be in a better position, because sometimes recruiters want you to invoice weekly and sometimes they pay more or less on receipt of the invoice. And sometimes they don't, of course.)
It comes down to have the savings, but as well to have low living expenses or otherwise lifestyle in a way where you can downgrade it when needed.
During that time app stores were a relatively new thing, so the products I was developing were apps. They started making a decent revenue after 2 years if I remember right. The first year I didn't make about any money. I had very low-cost lifestyle, and cheap rent in a tiny apartment, which helped a lot. If I would have kids or some expensive hobbies it would have been much, much more difficult.