Skip to main content
Answer

Subscription being randomly removed on sign in

  • February 12, 2022
  • 2 replies
  • 82 views

Forum|alt.badge.img+5

Hey, first of all thanks for this great platform. It simplifies handling purchases a lot, but unfortunately I’m having troubles with it.

I’m experiencing strange behavior regarding subscriptions and authentication. Let’s say my account has subscription attached. I sign out and try to sign in again using credentials for the same account. Now, `logIn` calls randomly return valid subscription data or nothing. It seems to only happen on Android though. What’s even more interesting, `restoreTransactions` attaches the subscription again.

In further testing it turned out subscription is moved from proper account to newly created anonymous user. Is this expected behavior? If so how can I make sure subscription stays active for the user?

 

Let me know if additional information is needed. Thanks in advance for your help!


Platform details:

React Native 0.63.4
react-native-purchases@4.5.2
Android

Best answer by Andy

Hi @Michal Wlodarczyk! This does indeed seem similar to what @Nizza is seeing. Could you take a look at my answer on the other ticket? 

This post has been closed for comments

2 replies

Forum|alt.badge.img+2
  • Member
  • February 14, 2022

This sounds very similar to the issue we’re currently facing. I posted in here 11 days ago but so far not had much help getting to the bottom of it. Which is a shame as it seems like quite a critical issue.

 

 

 


Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • Answer
  • February 15, 2022

Hi @Michal Wlodarczyk! This does indeed seem similar to what @Nizza is seeing. Could you take a look at my answer on the other ticket?