Skip to content
Docs
Documentation/Billing & subscriptions
Billing & subscriptions

Restore purchases

Restore StoreKit purchases with Aplyna's iOS billing pilot and refresh verified entitlements without inferring customer identity or transferring another account's access.

On this page Offer a visible Restore purchases actionKeep purchase ownership intactRefresh without repeatedly prompting the store

Offer a visible Restore purchases action

Configure billing for the selected app and environment first. Restore runs from a deliberate user action and may require store authentication. It synchronizes verified purchase facts and returns refreshed customer information.

const customerInfo = await Aplyna.billing.restore();

Keep purchase ownership intact

The pilot preserves its billing customer separately from an anonymous analytics installation. Restore does not authorize adopting a foreign customer's transaction, merging accounts or transferring RevenueCat identities. APLYNA_BILLING_CUSTOMER_CONFLICT is an ownership conflict requiring an explicit supported identity plan, not permission to reset the customer.

Same-customer restore and cold relaunch have been observed in the iOS pilot. Authenticated cross-device subscriber migration remains unfinished. Do not advertise restoration as a complete cross-device login solution.

Refresh without repeatedly prompting the store

Use Aplyna.billing.sync() in React Native/Flutter or syncPendingPurchases() in Swift on launch/foreground. Reserve restore for the user's action. On failure retain the actual error and previous checkedAt; do not label old state as newly verified or invent offline access.