Trying to test purchase flows using my iPhone and test flight and I can’t seem to get rid of the item burned into the keychain that makes the purchase stick. I need a way to clear everything and start over.
Please advise.
Trying to test purchase flows using my iPhone and test flight and I can’t seem to get rid of the item burned into the keychain that makes the purchase stick. I need a way to clear everything and start over.
Please advise.
Best answer by Tarek
Hi Matthew,
I'm Tarek from RevenueCat Developer Support, thanks for reaching out, happy to help here.
I took a look, and the keychain isn't actually what's holding onto the purchase. Our iOS SDK doesn't store anything in the keychain, it just caches a bit of data in UserDefaults, which is wiped the moment you delete the app.
What's really "sticking" is on Apple's side: in sandbox and TestFlight the purchase is owned by the Apple Account you bought with, and it lives in the app receipt on the device. So reinstalling the app, or even deleting the customer in RevenueCat, won't clear it, the next restore or purchase just re-links it. And if it's a subscription, it's also auto-renewing on its own (in TestFlight, once every 24 hours), so it looks permanently active.
To get a clean slate, here are your options depending on how you want to test:
Let me know if that makes sense and if there's anything else I can help with!
Best regards,
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.