Question

Purchases.getSharedInstance().getOfferings(new ReceiveOfferingsListener() returns NULL

  • 14 October 2021
  • 4 replies
  • 15 views

Badge

Hello,

I am using Java in Android Studio.  When i debug my app, I can see that my id (from firebase authentication) has logged in in the past.  I have set up offerings (actually just 1) in RevenueCat, but when i try to fetch the offerings with getOfferings, it returns NULL.  

I read in a different post that:
The app needs to be be in the internal testing track on the Google Play Store in order to fetch subscriptions

 

Is this true?  Is that the reason why my app cannot “see” my offerings


4 replies

Userlevel 3
Badge +8

Hey @Dunwiddie 

That’s correct that the app needs to be on a testing track, either closed or internal, in order for RevenueCat to communicate with Google Play Console to fetch the products in your Offering. Have you set up a testing track and adding a testing user yet? Docs for reference: https://docs.revenuecat.com/docs/google-play-store 

Badge

Thanks much.  I am starting on an closed track, but may switch to an internal track due to the review time.  This is my 1st app and my first time with the GPS (I’m an apple person). In any case, what runs directly from android studio to my phone seems to work correctly, but running from the GPS cannot get past google authentication.  

 

I’ve put toast messages in, but is there a better way to debug from the play store?

Userlevel 3
Badge +8

Hi @Dunwiddie 

Can you clarify on what you mean by cannot get past Google authentication? 

Have you checked out this community post on empty Offerings - 

 

Badge

Hi Tina -

I’m getting closer.  My issue with google authentication was because although my sha1 fingerprint was set up for debug in firebase, it wasn’t on the release version

Currently i am researching a disconnect between getting offerings and making a purchase.  When invoking purchasePackage(), it needs a package identifier.  I need to figure out how to get that from my setup.  My users will either have a weekly subscription or a monthly subscription (radio buttons).

 

 

Reply