Skip to main content
Solved

RC Promotional Entitlement

  • 22 February 2022
  • 2 replies
  • 124 views

Forum|alt.badge.img+5

We regularly offer Promotional Entitlements to users, but they sometimes don’t work, particularly on iOS. We ask people to refresh their status through opening their pro page and killing and restarting their app. I can’t reproduce it on my phone. Are there some known bugs around Promotional Entitlements?

Best answer by Andy

Hey @Matthieu Rouif

 

There aren’t known bugs around this, but I think your customers might be getting a cached value. 

For these cases, where a purchase might have happened outside of the app, but the user already has the app open, you can call invalidatePurchaserInfoCache and then try to get purchaserInfo again. 

 

That will ensure that your users don’t get a cached value. 

 

The ideal implementation of this is to send an invisible push notification to your app after granting a promotional purchase to your user, and then force-refresh the cache when that specific notification is received by your app. 

 

Doing that would automatically refresh entitlements without any user action involved. 

 

Hope this helps! 

 

Andy

View original
Did this post help you find an answer to your question?

2 replies

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

Hey @Matthieu Rouif

 

There aren’t known bugs around this, but I think your customers might be getting a cached value. 

For these cases, where a purchase might have happened outside of the app, but the user already has the app open, you can call invalidatePurchaserInfoCache and then try to get purchaserInfo again. 

 

That will ensure that your users don’t get a cached value. 

 

The ideal implementation of this is to send an invisible push notification to your app after granting a promotional purchase to your user, and then force-refresh the cache when that specific notification is received by your app. 

 

Doing that would automatically refresh entitlements without any user action involved. 

 

Hope this helps! 

 

Andy


Forum|alt.badge.img+7

Hi Andy,

 

Promotional entitlements are no longer working for our users. Has something changed? Running the app in debug mode and checking the entitlements shows none, despite having given myself a promotional entitlement. I’ve tripled checked the user ID is the same, delete user and retried, and so on.

Invalidating the user cache made no difference.

flutter: 8RFp67dug8gJcLZzra280R16b4j1
flutter: EntitlementInfos(all: {}, active: {})

 


Reply


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