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.