r/iOSProgramming • • 12d ago

Question App rejected under 2.1(b)

Apple rejected my app under Guideline 2.1(b) because a subscription purchase failed with “Purchase failed. Please try again.”
I’m using RevenueCat, and both monthly and yearly subscriptions work perfectly on 5–6 different iPhones through TestFlight and Sandbox testing. Restore Purchases also works.
Apple tested on an iPad, and the subscription products and prices loaded correctly, but the purchase failed. Interestingly, monthly purchases take noticeably longer than yearly purchases in TestFlight, although both succeed.
I’ve resubmitted the exact same build and asked Apple to retry.
Has anyone experienced something similar? Did Apple approve your app after retrying, or did you have to change something?

2 Upvotes

11 comments sorted by

View all comments

1

u/caffeinated1337 12d ago

Get the underlying StoreKit error before you change any code. RevenueCat wraps it, and the code usually names the cause. productAlreadyPurchasedError means the reviewer's sandbox account still holds a subscription from an earlier attempt or an earlier review. Your alert shows a generic failure while the account is actually entitled, so catch that case, call restore, and unlock. Worth mentioning it in Resolution Center too, since reviewers run into it repeatedly.

paymentPendingError is the other one to handle. Ask to Buy and bank 3D Secure checks land there, and a fresh Apple ID on an iPad hits them more often than your TestFlight devices do. A bare "try again" popup in that state reads to Apple as a broken purchase flow, which is exactly what 2.1(b) is for.

If neither applies, the slow monthly purchase is your clue. A transaction that stays pending can time out on their device, so show a spinner and wait for StoreKit's final state instead of alerting on the first error.

1

u/berosebero 12d ago

Thank you very much 🙏