Skip to main content
Solved

CustomerInfo is empty after renewals

  • September 14, 2022
  • 1 reply
  • 115 views

Forum|alt.badge.img+3

Hi,

I just started using RC and I have some problems regarding renewals. I’m using React Native SDK and primarily targeting Android. I only have 1 subscription offer for my app. 

After the user successfully completes a purchase, I can see that he is given 7 minutes of access, I receive emails from Google Play Store about the purchase. After 7 minutes ( first renewal ) I receive another email from Play Store about successfull renewal. But when I refresh my app and make a request to customerInfo, the response is empty. Next time I open the app, I can see another event is added to customer history page in RC panel: “Opted out of renewal for ….”

  • I identify to RC after firebase login with user email.
  • Users must login to purchase something.
  • I tried with both an old subscription before Play Store changes, and new subscription. Results are same.

Am I missing something? 

 

Best answer by Emre

I figured out my problem.

I used to call SDK’s configure function without userid on app launch. Then I called login when user authenticated.

Instead, I waited until user is succesfully authenticated and then I called configure method with both userid and apikey. That seemed to solve my problem. If this is not a fluke, I think it should be made clear in the documents.

Regards.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

Forum|alt.badge.img+3
  • Author
  • Helper
  • 2 replies
  • Answer
  • September 15, 2022

I figured out my problem.

I used to call SDK’s configure function without userid on app launch. Then I called login when user authenticated.

Instead, I waited until user is succesfully authenticated and then I called configure method with both userid and apikey. That seemed to solve my problem. If this is not a fluke, I think it should be made clear in the documents.

Regards.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings