-
Notifications
You must be signed in to change notification settings - Fork 0
Nami SDK Stable Releases
Dan Burcaw edited this page Oct 24, 2024
·
13 revisions
- Fix an issue where the wrong campaign rule was being used for a given placement label
- Fix an issue where the wrong initial config campaign rule was being used
- Fix an issue where background video on mobile goes into full screen player
- Fix an issue with focus events on connected TV platforms
- Fix an issue with login / logout state handling
- Fix an issue with free trial and promotional offer display
- Fix several UI issues with carousel and stack components
- Add
TOGGLE_CHANGE
andPAGE_CHANGE
paywall events
- Fix carousel component swiper
- Fix flex alignment
- Fix hero video not redenering correctly in Safari
- Support for advanced video features
- Support for carousel component
- Improve fallback data handling
- Support repeatable list inside collapse component
- Support vertical alignment on product container
- Align
removeAllListeners
behavior with RN SDK
- Fix segment picker cursor
- Fix hidden component handling
- Fix responsive grid spacing and scrolling
- Fix background video and gradient container
- Fix background video position
- Support for HLS in Video component
- Support for Responsive Grid component
- Add
NamiCustomerManager.deviceId
- Add
NamiCustomerManager.registerJourneyStateHandler
,journeyState
(subscription management-only) - Add
NamiEntitlementManager.clearProvisionalEntitlementGrants
(subscription management-only)
- Allow passing product groups to paywall via campaign launch
- Find product by id rather than name
- Fix text component spacing issue
- Modify type definitions for
NamiPaywallManager.registerSignInHandler
,NamiPaywallManager.registerCloseHandler
,NamiPaywallManager.registerBuySkuHandler
,NamiPaywallManager.registerDeeplinkActionHandler
,NamiCustomerManager.registerAccountStateHandler
,NamiCampaignManager.launch
handlers to match Nami React Native SDK
- Support conditional components based on product entitlement
- Respect conditions based on product groups
-
SHOW_PAYWALL
event action is being triggered asUNKNOWN
-
NamiEntitlementManager - Implemented
NamiEntitlementManager
for Nami to manage entitlements. - NamiEntitlementManager.active - Retrieve all active entitlements for a user on the current device.
- NamiEntitlementManager.isEntitlementActive - Check if a single entitlement is currently active.
- NamiEntitlementManager.refresh - Manually trigger a refresh of the user's latest active entitlements from the Nami services.
- NamiEntitlementManager.registerActiveEntitlementsHandler - Register a callback to react to a potential changes to the active entitlements for the user
- NamiEntitlement - Object that contains data about an entitlement on the Nami Platform.
- Support hidden components - Hide components without removing them from your paywalls.
- New components - Video and collapsable components.
- Improved timeout and error handling
- Provide consistent typing with other Nami SDKs.
- Updated the JavaScript version to ECMAScript2021 for better backward compatability.
-
NamiConfiguration
'sappPlatformId
is nowappPlatformID
for consistentcy with other Nami SDKs -
NamiPaywallManager.buySkuComplete
has a much simpler (but modified) interface.
-
NamiCampaignManager.launch - Implemented
paywallLaunchContext
andresultCallback
inNamiCampaignManager.launch
in order to provide the paywall additional details. -
NamiPaywallManager.buySKUCancel - Implemented
NamiPaywallManager.buySKUCancel
to let Nami know the user has canceled their paywall purchase. -
NamiPayallManager.buySKUComplete - Implemented
NamiPaywallManager.buySKUComplete
to let Nami know the user has completed their paywall purchase. - Impression / Conversion Reporting - Implemented impression / conversion reporting for paywall analytics.
- Improved paywall load time - Paywalls render signficantly faster when immediately displayed.
- Provide consistent typing with other Nami SDKs.
- Provide consistent APIs with other Nami SDKs.
- NamiCustomerManager.setAnonymousMode - Method to enable anonymous mode for the customer, concealing their identity from system tracking for privacy.
-
NamiCampaignManager.launch - Implemented the
paywallActionHandler
to allow registering a callback to receive paywall-related events. - NamiPaywallManager.registerBuySkuHandler - Method to register a callback invoked when the user initiates a purchase action.
- Resolved compatibility issues with the Lit web component library and server-side rendering.
- Fixed rendering issues with subscription periods and pricing in paywalls.
- Fixed connectivity issues related to custom API hosts.
- Enhanced the display for different icons.
-
NamiPaywallManager
'sbuySkuComplete
andbuySkuCancel
methods are not fully implemented. - Impression or conversion reporting not yet implemented.
- Launch context is not yet implemented.
-
Nami - Introduced
Nami
to provide core functionality to initialize the SDK.-
Nami.configure -Method to initialize and configure the SDK using a
NamiConfiguration
object. -
NamiConfiguration - Defines the structure of the configuration object used by
Nami.configure
. - NamiLanguageCodes - Defines the languages supported by Nami paywalls.
-
Nami.configure -Method to initialize and configure the SDK using a
-
NamiCampaignManager - Introduced
NamiCampaignManager
to launch paywalls and manage campaigns.- NamiCampaignManager.launch - Method to launch paywalls.
-
NamiCampaignManager.allCampaigns - Method to get a list of available
NamiCampaign
s. - NamiCampaignManager.isCampaignAvailable - Method to check if a matching campaign is available, returning a boolean.
- NamiCampaignManager.refresh - Method to request that available campaigns be refreshed.
- NamiCampaignManager.registerAvailableCampaignsHandler - Method to register a callback that is called when campaigns are updated.
- NamiCampaign - Defines the structure of the campaign objects.
-
NamiCustomerManager - Introduced
NamiCustomerManager
to manager customer related functionality.- NamiCustomerManager.isLoggedIn - Method to check if a customer is logged in, returning a boolean.
- NamiCustomerManager.loggedInId - Method to get the unique customer identifier associated with the current device.
- NamiCustomerManager.login - Method to provide a customer id to link one or more devices to a known customer.
- NamiCustomerManager.logout - Method to disassociate a device from a customer identifier.
- NamiCustomerManager.registerAccountStateHandler - Method to register a callback that is called when a customer is logged in or logged out.
- NamiCustomerManager.setCustomerAttribute - Method to set an attribute in an on-device key/value store for use for paywall personalization uses cases.
- NamiCustomerManager.getCustomerAttribute - Method to get the current stored value, if available, for the provided key in the on-device customer key/value store.
- NamiCustomerManager.clearCustomerAttribute - Method to remove a key from the on-device customer key/value store.
- NamiCustomerManager.clearAllCustomerAttributes - Method to clear all customer attributes in the on-device key/value store.
- NamiCustomerManager.setAnonymousMode - Method to set the anonymous mode for the customer.
-
NamiPaywallManager - Introduce
NamiPaywallManager
to manage paywalls.- NamiPaywallManager.setProductDetails - Method to set product and price details to be used by the paywall.
- NamiPaywallManager.registerSignInHandler - Method to register a callback for when the customer clicks a sign in button on the paywall.
- NamiPaywallManager.registerCloseHandler - Method to register a callback for when the customer clicks on a close button on the paywall.
- NamiPaywallManager.registerDeeplinkActionHandler - Method to register a callback for when a customer clicks on a deeplink button on the paywall.
- NamiPaywallManager.registerBuySkuHandler - Method to register a callback for when a customer clicks on a buy button on the paywall.
- NamiPaywallManager.registerRestoreHandler - Method to register a callback wfor when a customer clicks to restore a previous purchase.
- NamiPaywallManager.buySkuComplete - Method to notify Nami SDK when a purchase succeeded for conversion reporting.
- NamiPaywallManager.buySkuCancel - Method to notify Nami SDK when a user cancelled the purchase flow, or an error occurred.
- When user actions are taken on the paywall, paywall callbacks are not being called.
-
NamiPaywallManager
'sbuySkuComplete
andbuySkuCancel
methods are not fully implemented. -
NamiCustomerManager
'ssetAnonymousMode
method is not fully implemented. - Impression or conversion reporting not yet implemented
- Launch context is not yet implemented
Please refer to the documentation for detailed usage instructions and examples.