LVL behavior on client side license validity check for free apps

前端 未结 3 1986
再見小時候
再見小時候 2020-12-21 02:40

I had developed a game intending to publish it as a paid application using the Android LVL with the default ServerManagedPolicy licensing policy. Now, the power

相关标签:
3条回答
  • 2020-12-21 03:30

    Not getting any answers here, I posted the same question on the Android Developers group. Here is the the best answer I got:

    Technically the backend license servers allow it and return a large validity timestamp, BUT... The market publisher console will not allow you to upload an APK that's free and requests the com.android.vending.CHECK_LICENSE permission.

    In practice, this means that free apps cannot use the LVL, because you won't be able to upload them.

    Trevor Johns, Developer Programs Engineer, Android

    0 讨论(0)
  • 2020-12-21 03:33

    Pulled this straight from the licensing tutorial:

    Considerations for Free Apps

    Licensing is currently supported only for paid applications. If you already published your application as free, you won't be able to upload an updated version that includes licensing (that is, an application that uses the same package name and that includes the licensing permission). Here are some points to keep in mind:

    If you want to offer a free version of your application that provides a reduced feature set (or that offers the full feature set for trial period), the free version of your application must not include the licensing permission and must use a different package name than the paid version of the app. If you want to offer a paid version of your free application that uses licensing, you can do so under a new package name.

    What you remember reading is probably this:

    For a free application, the server sets the validity period to a very high value (long.MAX_VALUE). This ensures that, provided the Policy has cached the validity timestamp locally, it will not need to recheck the license status of the application in the future.

    Which is in regards to this:

    The server considers a user licensed if the user is recorded to have purchased the application, or if the application is available for free.

    0 讨论(0)
  • 2020-12-21 03:38

    I was just dealing with the same issue and I found that the information here is outdated so I give you the updated version. It is now possible to upload apks for free apps that request the com.android.vending.CHECK_LICENSE permission. However, this does not mean that your app can actually use it. In the licensing overview is says under "Requirements and Limitations"

    • You can implement licensing controls for a free app, but only if you're using the service to provide APK expansion files.

    I did not know this and I tried anyway. The Upload works fine (although it is a free app and I don't have any expansion files) but users don't get a response from the licensing service. The confusing part is that, when you are logged in with the developer account, you get the test response that you chose in your developer profile and thus might think everything works.

    0 讨论(0)
提交回复
热议问题