It’s always a good idea to have a strong contract in place that explicitly specifies that the developer has no right to share any of the details with others. If you have a sizeable organization for which you are creating the app, you can also get copyright ownership.