Skip to content

Add trackCustomPaywallImpression API#863

Draft
tonidero wants to merge 1 commit intomainfrom
feat/track-custom-paywall-impression
Draft

Add trackCustomPaywallImpression API#863
tonidero wants to merge 1 commit intomainfrom
feat/track-custom-paywall-impression

Conversation

@tonidero
Copy link
Contributor

@tonidero tonidero commented Mar 13, 2026

Summary

  • Add trackCustomPaywallImpression API to the Unity SDK, wiring through the existing hybrid-common bridge on both iOS and Android
  • Introduce CustomPaywallImpressionParams class with an optional PaywallId for future extensibility
  • Add a testing UI in the Subtester app's Paywall screen with an optional paywall ID field

Changes

  • New file: CustomPaywallImpressionParams.cs — params class with optional PaywallId
  • Interface: IPurchasesWrapper — added TrackCustomPaywallImpression(string paywallId)
  • Public API: Purchases.cs — two overloads (with params, parameterless)
  • iOS bridge: PurchasesWrapperiOS.cs + PurchasesUnityHelper.m — DllImport and ObjC bridge calling [RCCommonFunctionality trackCustomPaywallImpression:]
  • Android bridge: PurchasesWrapperAndroid.cs + PurchasesWrapper.java — CallPurchases and static method calling CommonKt.trackCustomPaywallImpression()
  • No-op: PurchasesWrapperNoop.cs — empty stub
  • API tests: PurchasesAPITests.cs — compile-time verification of both overloads
  • Subtester: PaywallScreen.cs — "Custom Paywall Events" section with paywall ID field and button

🤖 Generated with Claude Code

Wire the trackCustomPaywallImpression API from the hybrid-common bridge
through to the Unity SDK, enabling Unity developers to track impressions
for custom (non-RevenueCat) paywalls. Also add a testing button to the
Subtester app's Paywall screen.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tonidero tonidero added the pr:feat A new feature label Mar 13, 2026
@tonidero tonidero requested a review from rickvdl March 13, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:feat A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant