Add trackCustomPaywallImpression API with offeringId override#725
Merged
rickvdl merged 7 commits intoMar 18, 2026
Merged
Conversation
tonidero
reviewed
Mar 13, 2026
tonidero
left a comment
Contributor
There was a problem hiding this comment.
Just a thought I have about trying to avoid including parsing logic in this layer if possible, so it's simpler to parse things later with logic in just PHC. Lmk what you think!
tonidero
reviewed
Mar 13, 2026
bebe3fc to
34db143
Compare
tonidero
approved these changes
Mar 13, 2026
tonidero
left a comment
Contributor
There was a problem hiding this comment.
Looks good! Looks like we might need a PHC bump for the README to be udpated... But not a blocker IMO. It would get updated anyway after a bump I think
rickvdl
added a commit
to RevenueCat/purchases-unity
that referenced
this pull request
Mar 17, 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` - Pass `CustomPaywallImpressionParams` through the wrapper interface, splitting into separate arguments only at the native bridge boundary - 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(CustomPaywallImpressionParams)` - **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 ### Related PRs - purchases-ios: RevenueCat/purchases-ios#6427 - purchases-android: RevenueCat/purchases-android#3199 - purchases-hybrid-common: RevenueCat/purchases-hybrid-common#1537 - react-native-purchases: RevenueCat/react-native-purchases#1660 - purchases-flutter: RevenueCat/purchases-flutter#1679 - purchases-capacitor: RevenueCat/purchases-capacitor#725 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Rick van der Linden <rick.vanderlinden@revenuecat.com>
rickvdl
added a commit
to RevenueCat/react-native-purchases
that referenced
this pull request
Mar 17, 2026
## Summary - Add `trackCustomPaywallImpression` API to React Native, enabling developers to track impressions of custom (non-RevenueCat) paywalls for analytics - Add purchase tester demo screen for testing custom paywall impressions ## Changes - **iOS bridge:** `RCT_EXPORT_METHOD(trackCustomPaywallImpression:)` in `RNPurchases.m` - **Android bridge:** `@ReactMethod trackCustomPaywallImpression` in `RNPurchasesModule.java` - **TypeScript:** `Purchases.trackCustomPaywallImpression()` in `purchases.ts` with optional `paywallId` parameter - **Purchase tester:** Added a demo Custom Paywall screen for testing impressions ### Related PRs - purchases-ios: RevenueCat/purchases-ios#6427 - purchases-android: RevenueCat/purchases-android#3199 - purchases-hybrid-common: RevenueCat/purchases-hybrid-common#1537 - purchases-flutter: RevenueCat/purchases-flutter#1679 - purchases-capacitor: RevenueCat/purchases-capacitor#725
34db143 to
f753949
Compare
rickvdl
added a commit
to RevenueCat/purchases-flutter
that referenced
this pull request
Mar 18, 2026
## Summary - Expose `trackCustomPaywallImpression` as a public API in Flutter - Support optional `paywallId` and `offeringId` parameters via `CustomPaywallImpressionParams` - If `offeringId` is not provided, the SDK uses the current offering identifier from the cache - Pass full arguments dictionary to PHC on both iOS and Android instead of unpacking individual fields - Add purchase tester screen with text fields for paywall ID and offering ID ## Changes - **Dart:** `CustomPaywallImpressionParams` with `paywallId` and `offeringId` - **iOS bridge:** Pass arguments dictionary directly to `[RCCommonFunctionality trackCustomPaywallImpression:]` - **Android bridge:** Pass arguments map directly to `CommonKt.trackCustomPaywallImpression()` - **Tests:** Unit tests for all parameter combinations - **API tester:** Compile-time verification of all API shapes - **Purchase tester:** Screen with text fields for paywall ID and offering ID ### Related PRs - purchases-hybrid-common: RevenueCat/purchases-hybrid-common#1565 - react-native-purchases: RevenueCat/react-native-purchases#1679 - purchases-unity: RevenueCat/purchases-unity#869 - purchases-capacitor: RevenueCat/purchases-capacitor#725
This was referenced Mar 18, 2026
facumenzella
pushed a commit
that referenced
this pull request
Mar 19, 2026
**This is an automatic release.** ## RevenueCat SDK ### ✨ New Features * Add platform-specific PaywallPresentationConfiguration to purchases-capacitor-ui (#730) via Jeffrey Bunn (@Jethro87) * Add trackCustomPaywallImpression API with offeringId override (#725) via Rick (@rickvdl) ### 📦 Dependency Updates * [AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.52.0 (#732) via RevenueCat Git Bot (@RCGitBot) * [Android 9.26.1](https://github.com/RevenueCat/purchases-android/releases/tag/9.26.1) * [Android 9.26.0](https://github.com/RevenueCat/purchases-android/releases/tag/9.26.0) * [iOS 5.65.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.65.0) * [iOS 5.64.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.64.0) * Updates purchases-hybrid-common to 17.51.1 (#729) via RevenueCat Git Bot (@RCGitBot) * [Android 9.26.1](https://github.com/RevenueCat/purchases-android/releases/tag/9.26.1) * [Android 9.26.0](https://github.com/RevenueCat/purchases-android/releases/tag/9.26.0) * [iOS 5.65.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.65.0) * [iOS 5.64.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.64.0) * [AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.49.0 (#724) via RevenueCat Git Bot (@RCGitBot) * [Android 9.26.1](https://github.com/RevenueCat/purchases-android/releases/tag/9.26.1) * [Android 9.26.0](https://github.com/RevenueCat/purchases-android/releases/tag/9.26.0) * [iOS 5.65.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.65.0) * [iOS 5.64.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.64.0) * [AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.48.0 (#722) via RevenueCat Git Bot (@RCGitBot) * [Android 9.26.1](https://github.com/RevenueCat/purchases-android/releases/tag/9.26.1) * [Android 9.26.0](https://github.com/RevenueCat/purchases-android/releases/tag/9.26.0) * [iOS 5.65.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.65.0) * [iOS 5.64.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.64.0) ## RevenueCatUI SDK ### Paywallv2 #### ✨ New Features * Add customVariables support to purchases-capacitor-ui (#734) via Facundo Menzella (@facumenzella) ### 🔄 Other Changes * Add docs for new Paywall presentation APIs (#733) via Toni Rico (@tonidero) * Bump fastlane-plugin-revenuecat_internal from `3e8c384` to `9a6911b` (#731) via dependabot[bot] (@dependabot[bot]) * Add api-extractor for public API surface tracking (#723) via Rick (@rickvdl) * Bump fastlane-plugin-revenuecat_internal from `e146447` to `3e8c384` (#726) via dependabot[bot] (@dependabot[bot]) * Add Galaxy to the README (#721) via Will Taylor (@fire-at-will)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
trackCustomPaywallImpressionas a public API in CapacitorpaywallIdandofferingIdparameters viaTrackCustomPaywallImpressionOptionsofferingIdis not provided, the SDK uses the current offering identifier from the cacheChanges
TrackCustomPaywallImpressionOptionswithpaywallIdandofferingIdindefinitions.tstrackCustomPaywallImpressioninPurchasesPlugin.swifttrackCustomPaywallImpressioninPurchasesPlugin.ktweb.tsRelated PRs