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 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 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 Slide

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

    View 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 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 Slide

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

    View Slide

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

    View Slide

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

    View 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 Slide

  11. ID
    ID
    PlayConsole Price changes 

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

    View Slide

  12. ID
    12

    View Slide

  13. ID
    ID
    PlayConsole
    13

    View Slide

  14. 14

    View Slide

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

    View Slide

  16. PlayStore
    Web PlayStore
    PlayStore
    16

    View Slide

  17. launchPriceChangeCon rmationFlow
    17

    View Slide

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

    View Slide

  19. dismiss USER_CANCELED
    ERROR
    19

    View Slide

  20. ID
    ID
    20

    View Slide

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

    View Slide

  22. View Slide

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

    View Slide

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

    View Slide


  25. 25

    View Slide