I’m trying to test my app before sending it out for beta in TestFlight. I need to make sure the paywall works properly, but there seems to be an issue.
I built my app in Flutterflow. The way I have things set up:
- A user can add one project and do whatever they want with that project
- If they try to add more than one project (numProjects !=0), I trigger the Revenuecat “Paywall” action, providing the entitlement ID
- I then have forking logic that checks if the user has that entitlement
- If the user has the entitlement, they should be able to move forward and add a project without interruption
- If the user doesn’t have the entitlement, they should see the paywall component I built
But I’m testing in my local environment (on my iPhone via XCode) with a Sandbox user, and the paywall component displays every single time, even though I can see in Revenuecat that this user has the entitlement. The first time I went through the flow, I was able to make the purchase with the Sandbox user, and I see them in Revenuecat, but I’m still seeing the paywall component.
Is it just because it’s a sandbox user that the entitlement isn’t returned?
I chatted with Claude.ai a bit, and the suggestion was about caching, so I added a “Restore purchases” button. But even after tapping that, when I go back to add a project, I see the paywall component.
Help!