The intellectual rights to the code always lay with the developer. However, the usage rights and app data concerning the client are the sole property of the client.