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

    1. Add a Restore Purchases button on the paywall and in settings.
    2. Call AppStore.sync() (StoreKit 2), restoreCompletedTransactions() (StoreKit 1), or Purchases.shared.restorePurchases() (RevenueCat).
    3. 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 app

    References

    Related checks (M8)