Another excellent question. Any compensation for services rendered - for productive work - must be specifically work authorized, so as a general rule selling a product created by you - whether it's an application or a widget - requires work authorization.
How about a H1b holder participates in a hackathon with cash prizes and wins. Can he claim the money ?
With the new laws re: H4 EAD, can I use my spouse's EAD to sell apps instead?
What if it's an app that I purchased from websites like flippa.com? If the app has continuing revenue, will it be treated as an investment rather than productive work?