Connect with us

Tech

Issues with subscription purchasing functionality after updating RevenueCat and Google PBL

 


+2

I've been using a subscription purchasing feature with RevenueCat in my React Native app for a while now and it was working fine. Recently I updated RevenueCat to version 7.27.4 and also updated the Google Play Billing Library to version 7.0.0 in my app/build.gradle. Since these updates, the function is no longer generating logs or performing purchase actions.

My purchase features:

import { Alert } from 'react-native'; import Purchases from 'react-native-purchases';

const buySubscriptionMonth = async () => {console.log(“You are about to purchase a subscription for 'affirmations_month'”);try {const { customerInfo, productIdentifier } = await Purchases.purchaseStoreProduct('affirmations_month');console.log(“Purchase completed: “, productIdentifier, customerInfo);

alert(“Customer information after purchase: ” + JSON.stringify(customerInfo));

if (customerInfo && customerInfo.entitlements.active[“pro”]) {dispatch(setSubscriber(true));navigation.navigate('Record');setModalVisible(false);} else {Alert.alert('You are not subscribed');}} catch (e) {console.error(“An error occurred during purchase:”, e);if (!e.userCancelled) {Alert.alert(e.message || 'An error occurred');}}};

Build

Android {Compile Sdk version 33

defaultConfig {applicationId “your.package.name” minSdkVersion 21 targetSdkVersion 33 versionCode 1 versionName “1.0”

missingDimensionStrategy 'Store', 'Play'}

// More configuration…}

Dependencies {implementation “com.android.billingclient:billing:7.0.0” // Other dependencies…}

problem:

This function doesn't generate any logs. The purchase process doesn't seem to start. No errors or alerts are triggered. If I use Purchases.purchaseStoreProduct instead of Purchases.purchaseStoreProduct I get the error “This product isn't available for purchase”. At least this gives me an error response, unlike Purchases.purchaseStoreProduct which doesn't respond at all.

It was tested on real devices in internal and closed testing to eliminate emulator issues.

question:

Are there any known issues with RevenueCat version 7.27.4 and Google Play Billing Library 7.0.0 that could cause this behavior? Do I need to make any additional changes to my project settings after these updates? Is there a specific way to enable more detailed logging in RevenueCat that can help diagnose this issue?

Any guidance or suggestions would be much appreciated.

Sources

1/ https://Google.com/

2/ https://community.revenuecat.com/sdks-51/issue-with-subscription-purchase-function-after-updating-revenuecat-and-google-pbl-4747

The mention sources can contact us to remove/changing this article

What Are The Main Benefits Of Comparing Car Insurance Quotes Online

LOS ANGELES, CA / ACCESSWIRE / June 24, 2020, / Compare-autoinsurance.Org has launched a new blog post that presents the main benefits of comparing multiple car insurance quotes. For more info and free online quotes, please visit https://compare-autoinsurance.Org/the-advantages-of-comparing-prices-with-car-insurance-quotes-online/ The modern society has numerous technological advantages. One important advantage is the speed at which information is sent and received. With the help of the internet, the shopping habits of many persons have drastically changed. The car insurance industry hasn't remained untouched by these changes. On the internet, drivers can compare insurance prices and find out which sellers have the best offers. View photos The advantages of comparing online car insurance quotes are the following: Online quotes can be obtained from anywhere and at any time. Unlike physical insurance agencies, websites don't have a specific schedule and they are available at any time. Drivers that have busy working schedules, can compare quotes from anywhere and at any time, even at midnight. Multiple choices. Almost all insurance providers, no matter if they are well-known brands or just local insurers, have an online presence. Online quotes will allow policyholders the chance to discover multiple insurance companies and check their prices. Drivers are no longer required to get quotes from just a few known insurance companies. Also, local and regional insurers can provide lower insurance rates for the same services. Accurate insurance estimates. Online quotes can only be accurate if the customers provide accurate and real info about their car models and driving history. Lying about past driving incidents can make the price estimates to be lower, but when dealing with an insurance company lying to them is useless. Usually, insurance companies will do research about a potential customer before granting him coverage. Online quotes can be sorted easily. Although drivers are recommended to not choose a policy just based on its price, drivers can easily sort quotes by insurance price. Using brokerage websites will allow drivers to get quotes from multiple insurers, thus making the comparison faster and easier. For additional info, money-saving tips, and free car insurance quotes, visit https://compare-autoinsurance.Org/ Compare-autoinsurance.Org is an online provider of life, home, health, and auto insurance quotes. This website is unique because it does not simply stick to one kind of insurance provider, but brings the clients the best deals from many different online insurance carriers. In this way, clients have access to offers from multiple carriers all in one place: this website. On this site, customers have access to quotes for insurance plans from various agencies, such as local or nationwide agencies, brand names insurance companies, etc. "Online quotes can easily help drivers obtain better car insurance deals. All they have to do is to complete an online form with accurate and real info, then compare prices", said Russell Rabichev, Marketing Director of Internet Marketing Company. CONTACT: Company Name: Internet Marketing CompanyPerson for contact Name: Gurgu CPhone Number: (818) 359-3898Email: [email protected]: https://compare-autoinsurance.Org/ SOURCE: Compare-autoinsurance.Org View source version on accesswire.Com:https://www.Accesswire.Com/595055/What-Are-The-Main-Benefits-Of-Comparing-Car-Insurance-Quotes-Online View photos

ExBUlletin

to request, modification Contact us at Here or [email protected]