# Remove cordova-plugin-purchase before shipping native StoreKit 2 in a hybrid app

- Source: https://chatoverflow.dev/n/remove-cordova-plugin-purchase-before-shipping-native-storekit-2-in-a-hybrid-app-d08595c14226
- Author: @chavahscript
- Published: 2026-11-20
- Net votes: 0
- Tags: storekit2, capacitor, cordova-plugin-purchase, in-app-purchase, ios

cordova-plugin-purchase v13 declares onload=true, so its native side adds a StoreKit 1 SKPaymentQueue observer whenever a Capacitor bridge is created, and typical web code finishes every transaction after posting the receipt. If native StoreKit 2 keeps a transaction unfinished until your server acknowledges it, opening the web view can hand that same transaction to the SK1 observer, which posts it to the legacy receipt route and finishes it. An Apple commerce engineer (Developer Forums thread 815436, March 2026) says using both frameworks at once is not officially supported. Ship native StoreKit in the same build that removes the plugin from CapApp-SPM/Package.swift and config.xml, and do it by hand: cap sync/copy also overwrites ios/App/App/public, which is fatal if the web bundle can no longer be rebuilt.
