react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

Question Regarding Update to Google Play Billing Library Version 6

Open cddceo opened this issue 1 year ago • 13 comments

I received a notification from Google stating that all new apps and updates to existing apps must use Google Play Billing Library version 6 or higher by August 31, 2024. They mentioned that from that date, any apps using versions lower than 6 will be blocked from publishing and updates.

Could you please let me know when React Native IAP will support Google Play Billing Library version 6? This update is crucial for us to continue publishing our app without interruptions.

cddceo avatar Jun 03 '24 22:06 cddceo

Same here, waiting for updates to this post.

Screenshot 2024-06-03 at 23 24 44

-> https://developer.android.com/google/play/billing/deprecation-faq?hl=en

Marjoel avatar Jun 04 '24 02:06 Marjoel

It looks like recent releases of react-native-iap already use version 6.x of the billing library. See the definition of RNIap_playBillingSdkVersion here: https://github.com/dooboolab-community/react-native-iap/blob/12.13.2/android/gradle.properties

Is there reason to believe otherwise?

MarkCSmith avatar Jun 04 '24 12:06 MarkCSmith

@MarkCSmith Even though I'm using react-native-iap 12.13.2 version, the google play console is warning me that I need to update the store payment library.

cddceo avatar Jun 04 '24 12:06 cddceo

@cddceo: Interesting. For what it is worth, I do not see a warning message in Google Play Console for my app.

MarkCSmith avatar Jun 04 '24 12:06 MarkCSmith

@MarkCSmith I got a hint from what you said. I'll delete all node modules, update them again, and upload them back to the store.

cddceo avatar Jun 04 '24 13:06 cddceo

I have updated my app and using the latest version of this library. Also uploaded the app but still the play console shows me the policy message.

haresh4d avatar Jun 06 '24 14:06 haresh4d

also here

pamydev avatar Jun 07 '24 00:06 pamydev

Me too. Has anyone found a solution?

rnjsrnrdnjs avatar Jun 11 '24 12:06 rnjsrnrdnjs

I got same issue.

LevisLuong avatar Jun 12 '24 03:06 LevisLuong

Hello everyone,

Could anyone test the 12.14.2-rc.1 release candidate and see if it works?

You can simply install the next version with the following command:

npm install react-native-iap@next

You can see the update in #2764

hyochan avatar Jun 12 '24 08:06 hyochan

If anyone has some time, could you please review #2764? Thank you!

hyochan avatar Jun 13 '24 18:06 hyochan

i believe that need change version at android/app/build.gradle

dependencies {
    def billingVersion = 7.0.0

    implementation "com.android.billingclient:billing:$billingVersion"
}

So I don't know if version 7 is supported yet

https://developer.android.com/google/play/billing/migrate-gpblv7?hl=pt-br

mayconline avatar Jun 13 '24 21:06 mayconline

i believe that need change version at android/app/build.gradle

dependencies {
    def billingVersion = 7.0.0

    implementation "com.android.billingclient:billing:$billingVersion"
}

So I don't know if version 7 is supported yet

https://developer.android.com/google/play/billing/migrate-gpblv7?hl=pt-br

I think this is done here https://github.com/dooboolab-community/react-native-iap/pull/2764/files#r1640807011. Am I missing something?

hyochan avatar Jun 15 '24 06:06 hyochan

updating to 12.15.1 worked for me, just took google a few minutes to remove the warning message. make sure to update and roll out on all release tracks including internal testing.

endp01 avatar Jul 10 '24 08:07 endp01

working for me too, but I needed to update react native to 0.74

mayconline avatar Jul 10 '24 13:07 mayconline

working for me too, but I needed to update react native to 0.74

may i know what is your react native version and kotlinVersion ?

saumya66 avatar Jul 16 '24 12:07 saumya66

working for me too, but I needed to update react native to 0.74

may i know what is your react native version and kotlinVersion ?

"react-native": "0.74.3",

'android/build.gradle'

buildscript {
   ext {
       buildToolsVersion = "34.0.0"
       minSdkVersion = 24
       compileSdkVersion = 34
       targetSdkVersion = 34        
       ndkVersion = "26.1.10909125"
       kotlinVersion = "1.9.22"        
   }
   repositories {
       google()
       mavenCentral()
   }
   dependencies {
       classpath("com.android.tools.build:gradle")
       classpath("com.facebook.react:react-native-gradle-plugin") 
       classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")       
   }
}

apply plugin: "com.facebook.react.rootproject"
'android/app/build.gradle'

apply plugin: "org.jetbrains.kotlin.android"


...


dependencies {
    def billing_version = "7.0.0"
    implementation "com.android.billingclient:billing:$billing_version"

    // The version of react-native is set by the React Native Gradle Plugin
    implementation("com.facebook.react:react-android")
   
    
    if (hermesEnabled.toBoolean()) {
        implementation("com.facebook.react:hermes-android")
    }
     else {
        implementation jscFlavor
    }
}
    
    ...

I using https://react-native-community.github.io/upgrade-helper/, to selected your current version and wich upgrade version, and follow step by upgrade

mayconline avatar Jul 16 '24 22:07 mayconline

If I'm stuck on RN 0.68.5 for the next few months, do I have any solutions?

Looks like 12.11.0 bumps Billing to 6.0.1 which lasts another year, and is on RN 0.69.1, which might not be too rough to upgrade to. Would prefer not to since I'm using a bare Expo project at the moment.

(Currently redoing the app in full expo so its easier to stay up to date but I doubt I'll have it done in time for this deadline)

daybreaker avatar Jul 21 '24 15:07 daybreaker