BloomreachSDK 2.0.0

dotnet add package BloomreachSDK --version 2.0.0
                    
NuGet\Install-Package BloomreachSDK -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BloomreachSDK" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BloomreachSDK" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BloomreachSDK" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BloomreachSDK --version 2.0.0
                    
#r "nuget: BloomreachSDK, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BloomreachSDK@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BloomreachSDK&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BloomreachSDK&version=2.0.0
                    
Install as a Cake Tool

MAUI Bloomreach SDK

MAUI Bloomreach SDK allows your application to interact with the Bloomreach Engagement Customer Data & Experience Platform. Bloomreach empowers B2C marketers to raise conversion rates, improve acquisition ROI, and maximize customer lifetime value.

The MAUI SDK is created as a .NET wrapper for binding libraries of the native Android SDK and the native iOS SDK.

Getting started

  • Add the BloomreachSDK NuGet package as a dependency (dotnet add package BloomreachSDK); it contains the native Android and iOS SDKs, no other package is needed.
  • Use BloomreachSDK methods by calling
  Bloomreach.BloomreachSDK.Configure(yourConfig);

Bloomreach SDK for multi-platform App UI (.NET MAUI) requires .NET 10 (net10.0-android, net10.0-ios) and supports the following platforms:

  • Android 6.0 (API 23) or higher
  • iOS 15.0 or higher

See Initial SDK setup for the full setup, and CONTRIBUTING.md to build and test the SDK itself.

Documentation

Release Notes

Release notes for the SDK.

Support

Are you a Bloomreach customer and dealing with some issues on mobile SDK? You can reach the official Marketing Support via these recommended ways.

Note that Github repository issues and PRs will also be considered but with the lowest priority and without guaranteed output.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 0 12/3/2026
1.0.0 17,748 10/2/2023
0.2.0 299 9/28/2023
0.1.0 326 9/14/2023

## Release Notes for 2.0.0
           #### December 03, 2026
           * Breaking:
             * Requires .NET 10 and .NET MAUI 10: target `net10.0-android` and `net10.0-ios`. Version 1.0.0 targeted .NET 6 on Android and .NET 7 on iOS; .NET 6 to 9 are no longer supported.
             * Raises the minimum Android version to 6.0 (API 23, previously API 21), required by current AndroidX libraries, and the minimum iOS version to 15.0 (previously 14.2).
             * iOS apps must adopt the UIScene lifecycle, which iOS 27 requires. Universal links are delivered to the scene delegate. For details, see [App Links](https://documentation.bloomreach.com/engagement/docs/maui-sdk-links).
             * The default session timeout is now 60 seconds on both platforms, as in the native SDKs (previously 20 seconds on Android and 6 seconds on iOS). Set `SessionTimeout` in your `Configuration` to keep the previous behavior.
             * The SDK tracks the push token in `notification_state` events instead of the customer properties `google_push_notification_id`, `huawei_push_notification_id`, and `apple_push_notification_id`, as the native SDKs do. Your {user.mkg} project must allow creating `notification_state` events.
             * `AutomaticPushNotification` no longer enables native push swizzling on iOS. Your `AppDelegate` must call `HandlePushNotificationOpened` and `HandlePushToken`, as the documentation always described. Previously, push opens were tracked twice. The option still controls automatic push handling on Android.
             * Opened push callbacks (`SetOpenedPushCallback`) receive the same `NotificationAction` on both platforms: `ActionType` is `app`, `deeplink`, or `web`, with `Url` and the push `Attributes`. `ActionName` and `Url` are nullable.
             * Received push callbacks (`SetReceivedPushCallback`) keep non-string payload values instead of failing.
             * `Configure` fails (or throws when safe mode is off) when the project authorization is missing, the configuration is invalid, or the SDK is already configured.
             * With safe mode off, async calls that the native SDK rejects now fail their `Task` instead of completing with a default value.
             * Huawei push can't be built with .NET 10 yet. The `Huawei.Hms.*` NuGet packages depend on the Android Support libraries, which .NET 9 and later reject. The SDK's HMS methods work once a .NET 10-compatible HMS binding is available. For details, see [Android push notifications](https://documentation.bloomreach.com/engagement/docs/maui-sdk-push-android#huawei-integration).
           * Added:
             * Updates the native Android SDK to version 5.5.0 (previously 3.7.1).
             * Updates the native iOS SDK to version 5.1.0 (previously 2.18.0).
             * Adds in-app content blocks: the `InAppContentBlockPlaceholder` view with `InAppContentBlockCallback` and the `TrackInAppContentBlock*` tracking methods. Also adds the `InAppContentBlockCarousel` view, which rotates through all content blocks of a placeholder. Override `FilterContentBlocks` and `SortContentBlocks` in `ContentBlockCarouselCallback` to filter and sort the carousel's content. For details, see [In-app content blocks](https://documentation.bloomreach.com/engagement/docs/maui-sdk-in-app-content-blocks).
             * Adds `Bloomreach.BloomreachSDK.InAppContentBlocks`, a runtime controller to prefetch in-app content blocks, check their availability with a deadline, and invalidate cached content.
             * Adds `SetInAppMessageCallback` with `InAppMessageCallback`, which reports shown in-app messages, clicks, closes, and errors, and `RemoveInAppMessageCallback`, which restores the default behavior. `TrackInAppMessageClose` accepts the close button text.
             * Adds support for {user.dh} event streams: `Configuration.ForStream`, SDK auth tokens through `Customer.WithSdkAuthToken` and `SetSdkAuthToken`, `SetSdkAuthErrorCallback` to refresh tokens, and `AnonymizeToStream` to anonymize and switch tracking to an event stream.
             * Adds an optional `Customer` parameter to `Configure` to identify the customer at initialization, and to set the initial SDK auth token for event streams.
             * Adds real-time segments: `GetSegments`, `RegisterSegmentationDataCallback`, and `UnregisterSegmentationDataCallback`.
             * Adds `StopIntegration`, which stops the SDK and deletes its local data, and `ClearLocalCustomerData`, which deletes local customer data while the SDK isn't running.
             * Adds `RegisterLoggerCallback` and `UnregisterLoggerCallback` to forward native SDK log entries to your app on both platforms.
             * Adds the configuration options `ManualSessionAutoClose`, `ApplicationId`, and `RegenerateDeviceIdOnAnonymize`.
             * Adds `RemoveOpenedPushCallback`, `RemoveReceivedPushCallback`, and `RemoveSdkAuthErrorCallback`.
             * Adds `SetAutoPushNotification` and `SetCampaignTTL` to change these options at runtime on Android, and the Android configuration options `PushAccentColorRGBA`, `PushAccentColorName`, and `AllowWebViewCookies`. `PushIcon` also finds `mipmap` resources.
           * Changed:
             * Builds the iOS native library as an XCFramework with Swift Package Manager, so iOS Simulator builds work on Apple Silicon Macs. The SDK no longer uses CocoaPods.
             * Resolves the Android native dependencies from Maven and NuGet instead of bundling copies of them.
             * Changes the default colors of the App Inbox button returned by `GetAppInboxButton` to yellow (`#FFD500`) with dark text (`#262626`), instead of purple with white text. The new colors match the App Inbox documentation of the other {user.br} SDKs. To keep the previous colors, set `BackgroundColor = "#3F06CA"` and `TextColor = "#FFFFFF"` in the `AppInboxButton` style of `SetAppInboxProvider`.
             * Redesigns the example app to match the example apps of the other {user.br} SDKs. For details, see [Example app](https://documentation.bloomreach.com/engagement/docs/maui-sdk-example-app).
             * Rewrites the documentation in the structure of the other {user.br} SDK guides, with new [Setup](https://documentation.bloomreach.com/engagement/docs/maui-sdk-setup), [In-app content blocks](https://documentation.bloomreach.com/engagement/docs/maui-sdk-in-app-content-blocks), and [Example app](https://documentation.bloomreach.com/engagement/docs/maui-sdk-example-app) pages. Some topics now share one page: tracking, anonymization, and payments; sending and receiving push notifications; iOS push notifications and APNs; and Android App Links and iOS universal links.
             * Corrects the documentation where it didn't match the SDK: the name of the iOS authorization provider (`ExponeaAuthProvider`), the iOS push extension setup with the one `BloomreachSDK` package, the Firebase setup on Android, and code samples that didn't compile. Calls are now written as `Bloomreach.BloomreachSDK`. A bare `BloomreachSDK` doesn't compile in Android builds (error CS0234).
             * Documents the public API that had no documentation, including safe mode, `IsConfigured`, the getters, runtime session and push settings, and the push setup self-check. Also documents the defaults and behaviors that differ between Android and iOS.
           * Deprecated:
             * `SetInAppMessageActionCallback` is deprecated. Use `SetInAppMessageCallback` instead.
           * Fixed:
             * Fixes opened push callbacks never being called on Android.
             * Fixes opened and received push callbacks never being called on iOS, and registering one replacing the other.
             * Fixes options not set in `Configuration` turning off automatic session tracking, flush retries, and push authorization on iOS instead of using the SDK defaults.
             * Fixes `ProjectRouteMap` and `DefaultProperties` in `Configuration` being ignored on iOS.
             * Fixes `Anonymize` with a project and without a project mapping not switching the project on iOS.
             * Fixes projects in `ProjectRouteMap` and `Anonymize` being sent without the `Token` authorization prefix on Android.
             * Fixes `SetSessionTimeout` and `GetSessionTimeout` using seconds instead of milliseconds on Android.
             * Fixes a possible hang of `RequestPushAuthorization` on Android 14 and later, and the push token not being tracked after the permission was granted.
             * Fixes App Inbox tracking using stale message data, and in-app message tracking failing for messages without a frequency or trigger, on Android.
             * Fixes in-app message tracking ignoring the message's tracking consent flag on iOS.
             * Fixes `SetAutomaticSessionTracking(true)` resetting the session timeout to the default on iOS.
             * Fixes async calls rejected by the native layer never completing.
             * Fixes push payload string values being trimmed on Android.
             * Fixes `HandlePushNotificationOpenedWithoutTrackingConsent` failing as an unsupported method on iOS.
             * Fixes `SetSessionTimeout` dropping fractions of a second on iOS.
             * Fixes `FlushData` returning `false` on iOS while another flush was running. It now waits up to 10 seconds for that flush, as the React Native SDK does.
See https://documentation.bloomreach.com/engagement/docs/maui-sdk-release-notes