简体   繁体   English

如何制作“免费”和“付费”的风味应用程序,购买付费版本会删除免费版本

[英]How can I make “free” and “paid” flavour apps, where buying the paid version deletes the free version

As far as I've read, if I want to publish an app with two different flavours, I need to differentiate their applicationId . 据我所读,如果我要发布具有两种不同风格的应用程序,则需要区分它们的applicationId

This then means that both the free and paid flavours can be installed at once on a single device. 这意味着免费和付费版本都可以同时安装在单个设备上。 I don't want this. 我不要这个 I want installing the paid flavour to overwrite the free flavour. 我想安装付费版来覆盖免费版。

Is this possible? 这可能吗?

Not directly. 不直接。

You are welcome to ask the user to uninstall the other app, or even to launch an activity to uninstall the other app, which the user will have to approve. 欢迎您要求用户卸载另一个应用程序,或者甚至发起一个活动来卸载该用户必须批准的另一个应用程序。 The user can ignore this. 用户可以忽略这一点。

You are welcome to refuse to run until the other app is uninstalled, which I suspect will irritate many users. 欢迎您拒绝运行,直到卸载另一个应用程序为止,我怀疑这会激怒许多用户。

You are welcome to say that the "paid" app is really an "unlocker", whose presence allows the use of additional features of the "free" app, so that the user keeps using the "free" app with the additional features. 欢迎您说“付费”应用程序确实是一个“解锁者”,它的存在允许使用“免费”应用程序的其他功能,以便用户继续使用带有其他功能的“免费”应用程序。

Or, use in-app purchases, and have only one app. 或者,使用应用程序内购买,并且只有一个应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM