Solved

RC Promotional Entitlement

  • 22 February 2022
  • 2 replies
  • 98 views

Userlevel 1
Badge +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?

icon

Best answer by Andy 23 February 2022, 16:51

View original

2 replies

Userlevel 5
Badge +8

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

Badge +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