Skip to content

feat: add missing SDK features (anonymous ID, display modes, promo code)#4

Merged
kherembourg merged 6 commits intomainfrom
feat/sdk-features
Mar 30, 2026
Merged

feat: add missing SDK features (anonymous ID, display modes, promo code)#4
kherembourg merged 6 commits intomainfrom
feat/sdk-features

Conversation

@kherembourg
Copy link
Copy Markdown
Contributor

Summary

  • Anonymous User ID displayed in Settings with copy-to-clipboard (both platforms)
  • Session tracking attributes: last_open_date (Date) and session_count (increment) set on each app launch (both platforms)
  • Default presentation result handler for deeplink-triggered paywalls (both platforms)
  • Paywall display mode picker in Settings: Fullscreen/Modal/Drawer/Popin (Android only)
  • Promo code action handled in interceptor — opens App Store redemption sheet (iOS only)

Features by platform

Feature Android iOS
Anonymous ID in Settings
last_open_date + session_count
Default result handler
Display mode picker N/A
Promo code interceptor N/A

Test plan

  • Both: Anonymous ID shows in Settings, copy button works
  • Both: Check Logcat/console for last_open_date and session_count attributes on launch
  • Both: Trigger a deeplink paywall, verify result handler logs
  • Android: Toggle display modes in Settings, verify preference persists
  • iOS: If paywall has promo code button, verify redemption sheet opens

🤖 Generated with Claude Code

kherembourg and others added 6 commits March 30, 2026 18:40
Show Purchasely anonymous user ID in Settings with a one-tap copy button,
and track last_open_date (Date) + session_count (increment) on each SDK init.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sets setDefaultPresentationResultHandler at SDK init to capture results
from deeplink-triggered paywalls and refresh premium status. Adds comment
clarifying that user attribute changes are handled via PLYEventDelegate.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kherembourg kherembourg merged commit 18dc3b1 into main Mar 30, 2026
2 checks passed
@kherembourg kherembourg deleted the feat/sdk-features branch March 30, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant