Skip to content

Conversation

@ghsdh3409
Copy link
Member

@ghsdh3409 ghsdh3409 commented Aug 27, 2025

Summary

  • This PR implements paywall and banner UI functionality for the Monetai Android SDK.
  • Users can now display promotional banners and full-screen paywalls automatically when non-purchaser predictions are made.

🚀 Key Features

  • 4 Paywall Styles: Compact, Highlight Benefits, Key Feature Summary, Text Focused
  • Automatic Banner: Smart floating banner with customizable positioning
  • Real-time Management: Automatic show/hide based on subscription status and discount expiration
  • Context Injection: PaywallContext provides proper activity context for callbacks
  • Builder Pattern: Java-friendly configuration API

📱 Implementation

  • Added MonetaiPaywallManager and MonetaiBannerManager for UI lifecycle management
  • Implemented MonetaiPaywallActivity with WebView-based paywall templates
  • Added automatic discount expiration monitoring with real-time updates
  • Extended MonetaiSDK with configurePaywall() and subscription status management

✅ Testing

  • Updated sample apps (Kotlin & Java) with full integration
  • Added comprehensive documentation (English & Korean)
  • Verified automatic behavior and lifecycle management

🔄 Breaking Changes

  • None. Fully backward compatible.

@ghsdh3409 ghsdh3409 marked this pull request as draft August 27, 2025 23:52
- Add paywall UI with MonetaiPaywallActivity and MonetaiPaywallManager
- Implement banner system with MonetaiBannerView and MonetaiBannerManager
- Add comprehensive paywall and banner models (PaywallConfig, BannerParams, etc.)
- Enhance SDK with utility classes for styling, dimensions, and threading
- Add WebView constants and promotion timer functionality
- Update sample apps to demonstrate new features
@ghsdh3409 ghsdh3409 changed the title Feature/paywall UI Paywall UI Sep 2, 2025
@ghsdh3409 ghsdh3409 marked this pull request as ready for review September 2, 2025 21:01
@ghsdh3409 ghsdh3409 self-assigned this Sep 2, 2025
@ghsdh3409 ghsdh3409 added the enhancement New feature or request label Sep 2, 2025
@ghsdh3409 ghsdh3409 merged commit 373358d into main Sep 3, 2025
2 checks passed
@ghsdh3409 ghsdh3409 deleted the feature/paywall-ui branch September 3, 2025 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant