Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What’s new in Google Play Billing v1.2

ymnder
March 18, 2019

What’s new in Google Play Billing v1.2

Otemachi.apk #02 2019/3/18 @ymnd
https://nikkei.connpass.com/event/120816/

ymnder

March 18, 2019
Tweet

More Decks by ymnder

Other Decks in Programming

Transcript

  1. What s new in Google Play Billing v1.2
    Otemachi.apk #02 2019/3/18 @ymnd

    View full-size slide

  2. https://speakerdeck.com/ymnder/xiang-jie-ding-qi-
    gou-ru
    What's new in Google Play Billing
    v1.0 -> v1.1
    https://speakerdeck.com/ymnder/whats-new-in-
    google-play-billing
    2

    View full-size slide

  3. Google Play Billing Library
    v1.1 -> v1.2(released 2018-10-18)
    https://developer.android.com/google/play/billing/
    billing_library_releases_notes
    3

    View full-size slide

  4. v1.1 -> v1.2
    proration mode
    BillingFlowParams
    API
    Release note
    loadRewardedSku
    setChildDirected
    4

    View full-size slide

  5. Android
    > The Play Billing Library is now licensed under the
    Android Software Development Kit License
    Agreement.
    https://developer.android.com/studio/terms?hl=ja
    5

    View full-size slide

  6. proration mode
    DEFERRED Mode
    > Added support for a new proration mode,
    DEFERRED, when upgrading or downgrading a user's
    subscription.
    https://developer.android.com/google/play/billing/
    billing_subscriptions#prorate
    6

    View full-size slide

  7. proration mode
    IMMEDIATE_WITH_TIME_PRORATION: default
    IMMEDIATE_AND_CHARGE_PRORATED_PRICE
    IMMEDIATE_WITHOUT_PRORATION
    [NEW!!] DEFERRED
    7

    View full-size slide

  8. New proration mode
    DEFERRED
    8
    4/1 5/1
    A
    B
    4/15
    $1
    $3

    View full-size slide

  9. BillingFlowParams
    BillingFlowParams
    > In the BillingFlowParams class, replaced setSku()
    with setSkuDetails().
    setSku deprecated
    skuId skuType
    querySkuDetailsAsync SkuDetails
    API
    9

    View full-size slide

  10. API
    API
    > Added the launchPriceChangeCon rmationFlow API, which
    prompts users to review a pending change to a subscription
    price.
    I/O 2018
    Grow and optimize your subscriptions with new Google
    Play features (Google I/O '18)
    https://youtu.be/x1AYelepG6o?t=1176
    10

    View full-size slide

  11. ID
    ID
    PlayConsole Price changes 

    https://support.google.com/googleplay/android-
    developer/answer/140504
    11

    View full-size slide

  12. ID
    ID
    PlayConsole
    13

    View full-size slide

  13. 15
    37೔લ 30೔લ
    ৽Ձ֨
    Ձ֨มߋ೔ ͓஌Βͤ
    طଘ
    ৽ن
    $3
    $3
    $1
    ←ɹɹ͜ͷظؒʹಉҙͨ͠Βܧଓɹɹ→

    View full-size slide

  14. PlayStore
    Web PlayStore
    PlayStore
    16

    View full-size slide

  15. launchPriceChangeCon rmationFlow
    17

    View full-size slide

  16. 1. querySkuDetailsAsync SkuDetails
    2. SkuDetails PriceChangeFlowParams
    3. PriceChangeFlowParams
    PriceChangeCon rmationListener
    launchPriceChangeCon rmationFlow
    18

    View full-size slide

  17. dismiss USER_CANCELED
    ERROR
    19

    View full-size slide

  18. Play Billing Library 1.2.1 Release (2019-03-04)
    Play Billing Library 1.2.2 Release (2019-03-07)
    21

    View full-size slide

  19. whoami
    twitter:@ymnd, github:@ymnder
    Application Engineer
    Android
    Android
    Nikkei Development Book
    23

    View full-size slide

  20. We are hiring!!!
    Android
    https://s.nikkei.com/s_android
    24

    View full-size slide