且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

付费和免费版本的Android应用程序

更新时间:2022-12-21 12:26:32

您可以在Play商店中拥有两个版本的应用程序。但是,您必须单独维护这些服务,并且使用此方法从免费升级到付费是令人沮丧的。如果您选择这种维护应用程序的方式,则必须有两个项目,每个版本都有一个项目。这将导致您拥有几乎相同的源代码的两个副本。

我见过的一种做法是,免费版本还包含一些高级功能,一旦用户从商店安装了付费解锁应用程序,就会解锁这些功能。但是,这与第一个选项具有相同的结果:您将不得不维护两个应用程序(但这次不同),用户将不得不安装其他软件。



***的选择是将高级版本作为应用程序内购买。该应用程序将包含所有的高级功能,但默认情况下会被锁定。一旦用户支付应用内产品(在这种情况下为高级会员),他将解锁所有功能。

您可以详细了解应用内结算在这里。


I am wondering what is the best way to have two different versions of an android app. I would like to have version of my app with ads and one without ads (the paid one). What is the easiest way to achieve this ? I have found something called version flavours here but since I am new to android development I am not sure if that is what I want. Please any suggestions for addressing this ?

You could have two versions of the application in Play store. However, you would have to maintain these separately and it is frustrating to upgrade from free to paid with this approach. If you chose this way of maintaining your application, you would have to have two projects, one for each version. This would result you into having two copies of almost identical source code.

One approach I've seen people do is that the free version also contains the premium features which are unlocked once the user installs a paid unlocker application from the store. However, this has the same result as the first option: you would have to maintain two applications (this time different, though) and the users would have to install additional software.

The best option is to include the premium version as an in-app purchase. The app would contain all the premium features but would be locked by default. Once the user pays for the in-app product (in this case the premium membership), he would unlock all the features.

You can read more about in-app billing here.