There needs to be a government regulation that forbids platform gatekeeping. If you sell a general-purpose device or make an OS for such devices, you can't insert yourself between third-party app developers and their users, simple as that. This would solve the problem you're describing.