What contracts should cover
Assignment of IP in custom work to the client, licences for any reused components or the supplier's frameworks, third-party and open-source licences, and moral rights where relevant.
Practical ownership
Repositories, hosting, domains, app store accounts, analytics and payment accounts should be in the client's name, with suppliers given access. Paper ownership is little use if you cannot reach your own code.
Questions, answered
Generic components are often reused; your business-specific work should be yours under the contract.
You license the software and own your data; the vendor owns the platform.