Ads

Track your subscriptions better with the Google Play Developer API

Track your subscriptions better with the Google Play Developer API - Hallo sahabat Download free and best APP for Android phone and tablet, Pada Artikel yang anda baca kali ini dengan judul Track your subscriptions better with the Google Play Developer API, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan Artikel free trial, Artikel In-app Billing, Artikel Subscription, Artikel trial period, yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : Track your subscriptions better with the Google Play Developer API
link : Track your subscriptions better with the Google Play Developer API

Baca juga


Track your subscriptions better with the Google Play Developer API

Posted by Neto Marin, Developer Advocate


Back in 2012, we introduced free trials support for Android app subscriptions. A
free trial runs for a period of time that you set and then automatically
converts to a full subscription based on the subscription's billing interval and
price. Google Play supports free trials for all subscription types. Check out href="https://developer.android.com/google/play/billing/billing_subscriptions.html#trials">Free
trials in our documentation for more details.



This feature is an important tool for user conversion because the user can try
your app or game before committing to paying. To help you track the
subscription status better, we are adding a third "paymentState" value to the href="https://developers.google.com/android-publisher/api-ref/purchases/subscriptions#resource-representations">Purchases.subscriptions
API (on Google
Play Developer API
) to represent that the user is in a free trial. Possible
values are:


  • 0 - Payment pending

  • 1 - Payment received

  • 2 - Free trial




Since there is a new possible value, it is necessary to check how your back end
is handling the paymentState parameter. If you are doing something like this,
you potentially could have a problem:



// WARNING: Don't do this!
if (paymentState == 1) {
// User is in normal state
} else {
// Handle user in grace period # this would now be a bug
}


As a best practice, and to avoid issues on future updates, we recommend checking
specifically for each possible case, like this:



if (paymentState == 0) {
// Subscriber with payment pending
} else if (paymentState == 1) {
// Subscriber in good standing (paid)
} else if (paymentState == 2) {
// Subscriber in free trial
}


You can check the href="https://developers.google.com/android-publisher/api-ref/purchases/subscriptions#resource-representations">Purchases.subscriptions
documentation for more details. And if you're not offering free trials in your
app or game, don't miss the chance to increase user conversions by letting them
have a taste of your app - check out our documentation on href="https://developer.android.com/google/play/billing/billing_subscriptions.html#trials">Free
trials.



Demikianlah Artikel Track your subscriptions better with the Google Play Developer API

Sekianlah artikel Track your subscriptions better with the Google Play Developer API kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.

Anda sekarang membaca artikel Track your subscriptions better with the Google Play Developer API dengan alamat link http://apk44droid.blogspot.com/2017/05/track-your-subscriptions-better-with.html

0 Response to "Track your subscriptions better with the Google Play Developer API"

Post a Comment

Popular Posts

Translate

Total Pageviews