high · M8 · MASVS-PLATFORM-3 · PTKD-REVIEW-RESTORE-PURCHASES
In-app purchases without a way to restore them (heuristic)
The app sells in-app purchases but no restore call was found. App Review checks for a Restore Purchases option for non-consumables and subscriptions; without it the build is rejected under 3.1.1.
How it is exploited
Not an attack: a rejection. The reviewer buys the subscription in the sandbox, deletes and reinstalls the app, and looks for a way to get the purchase back. There is none.
Why it matters
Rejected under 3.1.1, and users who change phones lose what they paid for (refund requests, one-star reviews).
How to fix it
- Add a Restore Purchases button on the paywall and in settings.
- Call AppStore.sync() (StoreKit 2), restoreCompletedTransactions() (StoreKit 1), or Purchases.shared.restorePurchases() (RevenueCat).
- Re-read entitlements after restore and unlock the content.
StoreKit 2
Button("Restore Purchases") {
Task { try? await AppStore.sync() }
}Does your app have this?
PTKD checks your build or your source project for PTKD-REVIEW-RESTORE-PURCHASES and every other check in this knowledge base.
Scan your appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen