hyochan / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.hyo.dev
MIT License
2.85k stars 647 forks source link

Question Regarding Update to Google Play Billing Library Version 6 #2755

Closed cddceo closed 3 months ago

cddceo commented 5 months ago

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.

Marjoel commented 5 months ago

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

MarkCSmith commented 5 months ago

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?

cddceo commented 5 months ago

@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.

MarkCSmith commented 5 months ago

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

cddceo commented 5 months ago

@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.

haresh4d commented 5 months ago

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.

kauesedrez commented 5 months ago

also here

rnjsrnrdnjs commented 5 months ago

Me too. Has anyone found a solution?

LevisLuong commented 4 months ago

I got same issue.

hyochan commented 4 months ago

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 commented 4 months ago

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

mayconline commented 4 months ago

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

hyochan commented 4 months ago

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?

endp01 commented 4 months ago

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.

mayconline commented 4 months ago

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

saumya66 commented 3 months ago

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 ?

mayconline commented 3 months ago

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

daybreaker commented 3 months ago

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)