# Google Play Billing Library V6 - 31 August 2024

**URL:** <https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577>\
**Category:** Android\
**Created:** [May 28, 2024, 5:42pm UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577 "2024-05-28T17:42:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [May 28, 2024, 5:42pm UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/1 "2024-05-28T17:42:52Z")

</div>

Hi Folks,

Looks like from 31st August 2024, apps must move to Google Play Billing Library V6; this can be extended in some cases to 1st November 2024.

Is there any way this can be supported with JUCE 7?

Best wishes, Pete

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [May 31, 2024, 7:50pm UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/2 "2024-05-31T19:50:05Z")

</div>

Maybe there are few users of JUCE with Android?

Anyhow, FWIW I’ve dropped the JUCE implementation of Google Play Billing, and instead use my own custom implementation; mainly Java, some JNI, working with Google Play Billing Library V6.

NB: I’ve found that queryPurchasesAsync doesn’t work (!) … it only ever returns 0 rows for me; it has proven necessary for me to use queryPurchaseHistoryAsync instead (!)

Hoping that info helps somebody.

Best wishes, Pete

---

<div class="post-metadata">

**Author:** ![djb-2](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@djb-2](https://forum.juce.com/u/djb-2)\
**Post date:** [May 31, 2024, 8:33pm UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/3 "2024-05-31T20:33:05Z")

</div>

+1 for keeping the Android Billing implementation in JUCE up to date.

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [June 1, 2024, 9:22am UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/4 "2024-06-01T09:22:11Z")

</div>

Hi again folks,

By experimenting with the V7 library, I have found that the reason queryPurchasesAsync was returning zero rows, was that it returns purchases that are subscriptions or _non-consumed_ items.

queryPurchaseHistoryAsync returns all “most recent” purchases for all items; irrespective of “consumption” status. However, from V7 onwards, queryPurchaseHistoryAsync is marked as deprecated! So from V8 onwards, we’ll be forced to use only queryPurchasesAsync.

Anyhow: the upshot is that depending on your non-subscription IAP item, you might _not_ want to call consumePurchase; if you want it to show-up in subsequent calls to queryPurchasesAsync. That is important if you want an IAP item to show-up on IAP restoration on a different device with the same account, for example.

Hoping that helps somebody!

Best wishes, Pete

---

<div class="post-metadata">

**Author:** ![cvural](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@cvural](https://forum.juce.com/u/cvural)\
**Post date:** [June 1, 2024, 9:31am UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/5 "2024-06-01T09:31:18Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![swar](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/swar/32/12935_2.png) [@swar](https://forum.juce.com/u/swar)\
**Post date:** [June 1, 2024, 11:08am UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/6 "2024-06-01T11:08:48Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [June 1, 2024, 11:41am UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/7 "2024-06-01T11:41:33Z")

</div>

It is quite easy to create your own alternative interface with Java/Kotlin and a bit of JNI…

Similarly, my app’s Apple and Windows store interfaces (and Amazon store interface) are all my own platform-specific code.

Pete

---

<div class="post-metadata">

**Author:** ![DspLancelot](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dsplancelot/32/17977_2.png) [@DspLancelot](https://forum.juce.com/u/DspLancelot)\
**Post date:** [June 1, 2024, 9:02pm UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/8 "2024-06-01T21:02:00Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [June 27, 2024, 10:16am UTC](https://forum.juce.com/t/google-play-billing-library-v6-31-august-2024/61577/9 "2024-06-27T10:16:01Z")

</div>

Somehow I forgot to update this thread, sorry about that.

JUCE’s develop branch has been updated to add support for v7 of the Google Play Billing library:

> <https://github.com/juce-framework/JUCE/commit/473da34dfa3d70404d3a6afaca67dea4582372c3>
>
> Also updates the Projucer's Android exporter to update Google Play
> Billing Libra…ry dependency to 7.0.0.
