Skip to content

feat(paywalls): add web_view JavaScript bridge#3655

Draft
alexrepty wants to merge 1 commit into
alexrepty/paywalls-web-view-variables-providerfrom
alexrepty/paywalls-web-view-bridge
Draft

feat(paywalls): add web_view JavaScript bridge#3655
alexrepty wants to merge 1 commit into
alexrepty/paywalls-web-view-variables-providerfrom
alexrepty/paywalls-web-view-bridge

Conversation

@alexrepty

@alexrepty alexrepty commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Adds the live JS<->native bridge engine WebViewJavaScriptBridge on top of the message model and variables provider: a document-start window.RevenueCatWebView shim, origin-checked inbound dispatch, and native->web delivery. Internal and exercised by unit tests in isolation; the wiring that installs it into the paywall lands in the final PR.

alexrepty commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@alexrepty alexrepty changed the title feat(paywalls): add web_view bidirectional messaging feat(paywalls): add web_view JavaScript bridge engine Jun 25, 2026
@alexrepty alexrepty mentioned this pull request Jun 25, 2026
2 tasks
@alexrepty alexrepty changed the base branch from alexrepty/paywalls-web-view-message-model to graphite-base/3655 June 26, 2026 10:49
@alexrepty alexrepty force-pushed the alexrepty/paywalls-web-view-bridge branch from e9af9f9 to 1704224 Compare June 26, 2026 10:49
@alexrepty alexrepty force-pushed the graphite-base/3655 branch from 21899a1 to 276280e Compare June 26, 2026 10:49
@alexrepty alexrepty changed the base branch from graphite-base/3655 to alexrepty/paywalls-web-view-variables-provider June 26, 2026 10:50
@alexrepty alexrepty changed the title feat(paywalls): add web_view JavaScript bridge engine feat(paywalls): add web_view JavaScript bridge Jun 26, 2026
@alexrepty alexrepty force-pushed the alexrepty/paywalls-web-view-bridge branch from 1704224 to e63218e Compare June 26, 2026 14:20
@alexrepty alexrepty force-pushed the alexrepty/paywalls-web-view-variables-provider branch 2 times, most recently from 7769f56 to 716657f Compare June 26, 2026 14:26
@alexrepty alexrepty force-pushed the alexrepty/paywalls-web-view-bridge branch from e63218e to aab1540 Compare June 26, 2026 14:26
Adds a bidirectional JS<->native bridge for the Paywalls V2 `web_view` component: a document-start `window.RevenueCatWebView` shim, message parsing/validation (`WebViewMessageParser`, `WebViewMessageType`), the public `PaywallWebViewMessage` / `PaywallWebViewValue` / `PaywallWebViewMessageHandler` / `PaywallWebViewController` surface, and an SDK-managed variables provider (locale, color scheme, custom variables). Apps opt in via `PaywallOptions.setWebViewMessageHandler(...)`, threaded through `PaywallState` / `OfferingToStateMapper`.

Regenerates ui/revenuecatui/api.txt for the new public API.

Recommended labels: pr:feat, pr:RevenueCatUI, feat:Paywalls_V2
@alexrepty alexrepty force-pushed the alexrepty/paywalls-web-view-variables-provider branch from 716657f to 27bcaa4 Compare June 26, 2026 14:57
@alexrepty alexrepty force-pushed the alexrepty/paywalls-web-view-bridge branch from aab1540 to 8483042 Compare June 26, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant