But the OP asked specifically about earning money to replace a full time income, and consulting is a faster route to money. Product businesses take time to build an audience (you do have an email list of prospective customers, right?) and you're looking for thousands of customers. Whereas with consulting, you only need to find a handful of clients. Charge your client $100/hour (really you should charge more, or charge weekly) and you'll be so far ahead of most App developers. Which is easy, since most apps earn no money and many get no traction at all.
You could always try both. Split half your time into consulting, the other half into doing an app. See which works better and gets more traction. Hopefully the consulting half becomes unnecessary as the apps take off and become a hit.
Making an app is great when it works, but it's not guaranteed to earn anything. It can take a while to find the right product. Even then, you're better off having a diversified portfolio of products, it's unlikely that one product alone will replace a full-time income, and they'll have individual dips & peaks in sales / subscriptions (several products helps make your income more steady).
Contributing to open source guarantees you won't earn anything upfront. Freelancing / consulting is far more immediate income, you either have a paying client or you don't. It's possible that some of your prospective clients won't even know what open source is, let alone be able to judge the quality of your code.
Of course, there are lots of ways to earn income that don't involve code. Getting casual work at Starbucks is an option. Being a day trader on stock markets might be another. Not everything has to be solved with code.