Back to all

Native iOS In-App Purchases via Median JavaScript Bridge on Free Plan — IAP Namespace Not Exposed

Hello Median Support,

I am building an iOS app using Lovable as the web app layer and Median as the native wrapper.

I am trying to implement Apple subscriptions using native StoreKit / App Store In-App Purchases, without using RevenueCat or an external payment provider, so that the subscription flow remains fully compliant with Apple App Store guidelines.

I have tested the Median JavaScript Bridge and have confirmed that the bridge itself is working.

My current setup:

Web app: Lovable React app
Web URL: https://motherwell.lovable.app
Native wrapper: Median iOS app
Distribution: Xcode source downloaded from Median → archived → uploaded to TestFlight
Testing device: iPhone via TestFlight build
Median plan: Free

Configuration/testing completed:

Initially the Median JavaScript Bridge was not detected.
I changed Website Overrides from:
"Use NPM Package"
to "Use Embedded JS"
Generated a new Median source build and retested.
The JavaScript Bridge is now detected successfully.

Current diagnostic result from my app:

Median IAP: not_exposed

Median bridge present (waited 0ms) but IAP namespace not exposed on this build/plan

This confirms:

window.median is available
The app is definitely running inside the Median native wrapper
The JavaScript Bridge is functioning
However, the IAP functionality is not exposed

My question:

Is native iOS In-App Purchase / StoreKit functionality available on the Median Free plan through the JavaScript Bridge?

Specifically:

Is there a JavaScript Bridge command available on the Free plan that can:

  • initiate an Apple StoreKit purchase sheet?

  • purchase an App Store subscription product?

  • restore purchases?

    If native IAP is not included in the Free plan:
    Is it available as a standalone plugin/add-on?
    Or does it require upgrading to a specific Median plan?

    If an upgrade is required:
    Which exact Median plan is required for:
    Apple In-App Purchases
    StoreKit subscription handling
    JavaScript Bridge access to IAP functions?

    If I upgrade, would the following architecture be supported?
    Lovable React Paywall

    Median JavaScript Bridge

    Native StoreKit / Apple IAP

    App Store Subscription

    Supabase entitlement update

I am specifically trying to avoid RevenueCat if possible and keep the subscription purchase flow entirely through Apple's native purchase sheet.

Any guidance on the minimum required Median configuration would be appreciated.

Thank you.