Display native promotional banners, flash sale cards, and discount carousels overlaying your app interface.
Engage app users with native Offer Cards and promo banners. Nativine embeds native UI card overlays, allowing marketing teams to push flash sales, promo codes, and discount announcements directly above web views without updating web code.
Offer Cards provide an interactive native layer for promotions and e-commerce announcements. Nativine's Offer Cards plugin renders native UI elements on iOS and Android:
To launch or dismiss an Offer Card programmatically from JavaScript, call nativine.offerCards.show():
nativine.offerCards.show({
title: 'Flash Sale: 30% OFF',
description: 'Use coupon code FLASH30 at checkout.',
couponCode: 'FLASH30',
imageUrl: 'https://yourcdn.com/banner.jpg',
ctaText: 'Redeem Now',
targetUrl: 'https://yourwebsite.com/checkout?code=FLASH30'
});
| Parameter | Type | Description |
|---|---|---|
title | string | Required. Offer card title text. |
couponCode | string | Optional. Discount code auto-copied to clipboard on tap. |
targetUrl | string | Optional. Web view destination URL navigated to upon CTA tap. |
Yes. Every Offer Card renders a native close button (✕) allowing users to dismiss the overlay gracefully.
Yes. Card configurations and image assets cached during app startup remain viewable even when offline.