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

Android - Subscription not reflected in ra

Open HemangiVekaria opened this issue 5 months ago • 10 comments

Description

I created 3 subscription plan on my google play console. Only one of them get reflected in application. I am using

import { initConnection, requestPurchase, useIAP } from 'react-native-iap';

const { subscriptions } = useIAP();

initConnection() .then(async log => { console.log('subscriptions', JSON.stringify(subscriptions)); }) .catch(e => { console.log(e); });

This prints only one product in log.

Expected Behavior

I want to show all 3 in application

Environment:

  • "react-native-iap": "^12.12.2",

HemangiVekaria avatar Jan 23 '24 10:01 HemangiVekaria

It will work over time, when I did mine, it took some few days after some tries, I started working properly and perfectly

Accoladecreative avatar Feb 12 '24 07:02 Accoladecreative

I have the same issue. Is it necessary to upload a new build after creating a new subscription on Google play console?

itsaliraxa avatar Feb 13 '24 18:02 itsaliraxa

It’s not necessary, the device will connect with the play store server and reflect update,

Accoladecreative avatar Feb 13 '24 18:02 Accoladecreative

It’s not necessary, the device will connect with the play store server and reflect update,

But I've created new subscriptions and these are not reflecting in the app. But the one that I created 2 weeks ago, it was reflecting after few minutes. Do you know what could be the reason?

itsaliraxa avatar Feb 13 '24 18:02 itsaliraxa

It’s not necessary, the device will connect with the play store server and reflect update,

But I've created new subscriptions and these are not reflecting in the app. But the one that I created 2 weeks ago, it was reflecting after few minutes. Do you know what could be the reason?

That’s should be an issues with your code then

Accoladecreative avatar Feb 13 '24 19:02 Accoladecreative

@Accoladecreative Do you know how long it will take to show a new subscription in the app?

itsaliraxa avatar Feb 16 '24 19:02 itsaliraxa

For the first time, it can take few days. I will say 3 days max with the ones I’ve worked with.

Then ones it started already, it will always reflect every changes immediately

Accoladecreative avatar Feb 16 '24 21:02 Accoladecreative

I resolved the issue by clearing the cache for Google Play Store and waiting for 5-10 minutes. Afterward, all the subscription products created on the Google Console were properly reflected in my application.

HemangiVekaria avatar Feb 19 '24 04:02 HemangiVekaria

How you clean the cache for google play store?

On Mon, 19 Feb 2024 at 9:12 AM, Hemangi @.***> wrote:

I resolved the issue by clearing the cache for Google Play Store and waiting for 5-10 minutes. Afterward, all the subscription products created on the Google Console were properly reflected in my application.

— Reply to this email directly, view it on GitHub https://github.com/dooboolab-community/react-native-iap/issues/2677#issuecomment-1951660565, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4XC7SVAEEZWHUUMKOSY3XTYULGLRAVCNFSM6AAAAABCGWWQS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGY3DANJWGU . You are receiving this because you commented.Message ID: @.***>

itsaliraxa avatar Feb 19 '24 07:02 itsaliraxa

How you clean the cache for google play store? On Mon, 19 Feb 2024 at 9:12 AM, Hemangi @.> wrote: I resolved the issue by clearing the cache for Google Play Store and waiting for 5-10 minutes. Afterward, all the subscription products created on the Google Console were properly reflected in my application. — Reply to this email directly, view it on GitHub <#2677 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4XC7SVAEEZWHUUMKOSY3XTYULGLRAVCNFSM6AAAAABCGWWQS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGY3DANJWGU . You are receiving this because you commented.Message ID: @.>

You can just go to app setting from your device and just go to Storage then clear cache from there.

HemangiVekaria avatar Feb 19 '24 09:02 HemangiVekaria