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();final customerInfo = await Aplyna.billing.restore();
final hasPremium = customerInfo.hasAccessTo('premium');let customerInfo = try await billing.restorePurchases()
let hasPremium = customerInfo.hasAccess(to: "premium")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.