@braze/web-sdk
Advanced tools
Changelog
5.1.0
subscribeToFeatureFlagsUpdates()
callback will be triggered first with cached feature flags only if this cache is from the current session.Changelog
4.10.2
Changelog
5.0.1
noCookies
initialization option from true to false did not create all the necessary cookies.Changelog
4.10.1
Changelog
5.0.0
subscribeToFeatureFlagsUpdates()
callback will now always be called, regardless of refresh success/failure. If there is a failure in receiving updates, the callback will be called with currently cached feature flags.getFeatureFlag()
method now returns a null if the feature flag does not exist, or if feature flags are disabled.logContentCardsDisplayed()
method that was previously deprecated in 4.0.4.enableHtmlInAppMessages
. This should be replaced with the allowUserSuppliedJavascript
option instead.Banner
class that was previously deprecated in 4.9.0 in favor of ImageOnly
.ab-banner
CSS classname as part of Banner
class removal. CSS customizations should instead target the ab-image-only
class.Changelog
4.10.0
appVersionNumber
initialization option for targeting via numerical comparison.changeUser()
.getDeviceId
and getUserId
now return results directly. Their callback parameters are deprecated and will be removed in a future major version.Changelog
4.9.0
ImageOnly
Card subclass, which has the same functionality as the Banner
class.ab-image-only
CSS class to Banner
and ImageOnly
cards when displayed through the built-in UI. New CSS customizations should target this class. The ab-banner
classname will remain on both card types until the Banner
class is removed in a future release.deferInAppMessage()
and getDeferredInAppMessage()
that can be used together to delay the display of an in-app message for a future pageload.
deferInAppMessage()
] method defers the given in-app message.getDeferredInAppMessage
] method.Banner
class.showInAppMessage()
and the parent node has not been attached to the DOM before the display callback is invoked.requestContentCardsRefresh()
were sometimes not triggered when this call was queued behind another requestContentCardsRefresh()
or subscribeToContentCardsUpdates()
request.dismissCard()
did not work as expected on cached content cards.destroy()
soonafter wipeData()
incorrectly created a device ID cookie.Changelog
4.8.3
manageServiceWorkerExternally
initialization option failed to register service-worker when trying to register from a path higher than the service-worker location.Changelog
4.8.2