Add presented offering context to paywall events#818
Merged
rickvdl merged 2 commits intoJun 2, 2026
Conversation
1a5be31 to
93f8425
Compare
Include placement_identifier, targeting_revision, and targeting_rule_id in paywall events when available, nested under presented_offering_context. The field is omitted entirely when no placement or targeting data exists. Matches the iOS and Android implementations.
93f8425 to
27b98b8
Compare
tonidero
approved these changes
Jun 2, 2026
tonidero
left a comment
Contributor
There was a problem hiding this comment.
Just a small comment... but looking good in any case. Thanks for adding this!
|
|
||
| function toPresentedOfferingContextPayload( | ||
| context: PresentedOfferingContext | undefined, | ||
| ): PresentedOfferingContextPayload | undefined { |
Contributor
There was a problem hiding this comment.
NABD, but I've usually preferred returning null to undefined...
RCGitBot
added a commit
that referenced
this pull request
Jun 4, 2026
**This is an automatic release.** ## RevenueCat SDK ### ✨ New Features * Add presented offering context to paywall events (#818) via Rick (@rickvdl) ### 🐞 Bugfixes * [WEB-4304] fix: Force billing address collection in Express Checkout element (#891) via Víctor Ferrer García (@vicfergar) ### 🔄 Other Changes * Bump jwt from 2.10.2 to 2.10.3 (#895) via dependabot[bot] (@dependabot[bot])
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
placement_identifier,targeting_revision, andtargeting_rule_idin paywall events under apresented_offering_contextnested objectRelated PRs
Test plan