2.0.0 - Flutter
November 25th, 2026
Breaking changes
widgetIdmust now be a stable label per widget placement, such ashomepage-stories: native 2.0 aggregates widget analytics by it. Use a label that is distinct per placement and the same across app sessions; apps that generate an ID per mount should switch to fixed labels. Do not give two widgets that are mounted at the same time the samewidgetId.BlazeFollowEntity.entityTypeis now required and nullable, so an entity without it no longer compiles. PassentityType: nullwhere the category is unknown.BlazeSDK.setExternalUserId(externalUserId)now takes a non-nullString. A blank ID fails with the reasoninvalidExternalUserIdand leaves the current user unchanged. To log out, callBlazeSDK.logout(); in 1.x this was done by passingnull.BlazeAnalyticsEventinonEventTriggeredfollows the unified events schema of native 2.0: every enumerated value is lowercase snake_case, and events and fields are renamed, retyped, or removed, so code that uses a removed enum member or field no longer compiles.BlazeAnalyticsEvent.techis a new required field, and every enum has anunknownmember, so an exhaustiveswitchneeds anunknowncase. See Migrate to the unified events schema.customActionButtonson the Moments and Stories player button styles takes at most two buttons, each with a uniquecustomParams.id. A list that breaks the rule now throws anArgumentErrorbefore anything reaches native; in 1.x it crashed the app. An empty list now removes the buttons; in 1.x it was ignored.iconPositioningonBlazeMomentsPlayerCtaIconStyleandBlazeVideosPlayerCtaIconStyleis now required, so a CTA icon style without it no longer compiles. Set it tostart. It applies on Android only.
Added
BlazeAnalyticsEventdescribes the full native 2.0 event, including thetech,tab, andsearchblocks and the new event actions, triggers, and fields.- An analytics event this SDK version cannot decode is now reported through
BlazeGlobalDelegate.onErrorThrownwith domaingeneraland reasonfailedToParseAnalyticsEvent. In 1.x such an event was dropped with a debug log only. BlazeSDK.logout()to log out the current user, andrestoreExternalUserIdinBlazeSDK.initSDKto decide whether init restores the previous session's user. See Getting started Flutter.BlazeError.reasonvaluesinvalidExternalUserIdandfailedToLogout, on both platforms.- iOS: a blank
widgetIdis reported throughonErrorThrownwith the reasonmissingWidgetIdentifier.
Changed
- The external user ID now persists across launches, and
initSDKwithoutexternalUserIdrestores the previous user. PassrestoreExternalUserId: falseto start every launch anonymous, or callBlazeSDK.logout(). - Analytics volume changes with native 2.0: for example, start and exit events strictly alternate,
sdk_initis reported underevent_category: 'global', andwidget_loadandtab_data_loadfire once per id per session. Reset baselines that compare across the upgrade. See Reporting changes to expect. - On Android,
BlazeError.domainandBlazeError.reasonare now the native declared values, such asinitializationandapplicationNotInitialised, instead of the Kotlin constant names. On iOS, the errors that carry areason(invalidExternalUserId,failedToSetExternalUserId,failedToLogout,applicationNotInitialised,missingWidgetIdentifier) now use the samedomainstrings as Android (userManagement,initialization,widget). Update code that compares them. - A player style passed per call, per widget, or in the Moments tabs configuration is now applied on top of
defaultStoryPlayerStyle,defaultMomentsPlayerStyle, ordefaultVideosPlayerStylefrominitSDK, so fields it omits keep the app's default instead of the native preset. - Moments and Stories playback configurations now start from the app's current default, as Videos already did, so a field they omit keeps the default and a partial
setDefaultStoriesPlaybackConfigurationorsetDefaultMomentsPlaybackConfigurationcall updates the default instead of replacing it. - Android widgets:
letterSpacingin widget text styles is now in points, as on iOS. Convert an em value to points (em × text size). - Each mounted widget now has its own platform channel, so the events and controller calls of two mounted widgets no longer mix.
Fixed
- Android: a CTA icon with
iconImageon the Moments and Videos players now shows, with itsiconTint. - Android: a per-call or per-widget
enterPipOnAppBackgroundno longer rewrites the default Videos playback configuration. - Android: a widget text style that omits the font, or a status-indicator or badge style that omits the background image, now keeps the existing one. Before, a partial style or a
perItemStyleOverridesentry cleared it. - Android: Fixed animated thumbnails showing square edges instead of the item's rounded shape when the image border has a
margin, for example inStoriesWidget.Row.animatedThumbnailsCircles.
Native SDK updates
- iOS BlazeSDK 2.0.0, Android BlazeSDK 2.0.2.
