bubbl_flutter_sdk 5.1.0
bubbl_flutter_sdk: ^5.1.0 copied to clipboard
Bubbl for Flutter - geofenced and scheduled notifications, surveys and analytics, bridging the native Bubbl SDKs.
Changelog #
5.1.0 #
- Correlation ID:
Bubbl.setCorrelationId(id)andBubbl.clearCorrelationId()are back, on all four SDKs (Android, iOS, Flutter and React Native). They were in 4.x and missing from 5.0.x. Set your own id for the person using the device (an opaque member or CRM id, never an email address or a name) and Bubbl sends it as the device'scorrelation_id, so the dashboard, exports and the Platform API can be joined to your own user and CRM records. It is kept between launches, sent exactly as given (1 to 255 characters, not blank), and not unique: one person's phone and tablet share it. Clear it on sign-out.deleteMyData()and a start that began afresh forget it. Withdrawing consent clears it at Bubbl; the SDK keeps the last id and sends it again with the next consent. Needs a Bubbl server that acceptscorrelation_id(production before this release). - The Platform API contract copied into this repo is updated (media, location groups, plan feature checks, new error codes). No SDK behaviour changes.
5.0.1 #
- Diagnostics: when Bubbl's server answers 5xx to 3 requests in a row, Bubbl now logs one error
saying so, and it shows in
diagnostics().lastError(and as an error event). Before, a server outage leftregisteredfalse withlastErrorempty, because 5xx answers are retried quietly. One error per outage, not one per retry; any other answer ends the run. - No API changes. A version bump for parity, so all four SDKs (Android, iOS, Flutter and React Native) are on the same stable version.
5.0.0 #
- iOS: a campaign's button or link can no longer open any of Apple's
itms-schemes except the App Store's own (itms-apps,itms-appss). Before, only the enterprise app-install scheme was refused, and it was named in the SDK's code, which an App Review scan flagged. The SDK now matches the whole family by prefix and names none of them.itms-beta,itms-booksand the like are refused too; App Store links are unaffected. Android is unchanged.
5.0.0-alpha.4 #
- Android: notification and permission screens no longer use the deprecated
LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES(flagged by Google Play on Android 15). They useLAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYSon Android 11 and up; on Android 9 and 10 the system default applies, so in landscape the dim stops at the cutout.
5.0.0-alpha.3 #
- Silent geofence sync: the backend now dispatches a silent push when a geo campaign is published,
updated, or paused. The SDK wakes in the background, fetches the latest geofences, and registers
them with the OS — so devices receive notifications even if the app has never been opened in that
area. Requires
remote-notificationinUIBackgroundModeson iOS (already present in most Bubbl-enabled apps).
5.0.0-alpha.2 #
Bubbl.permissions.openSettings()now works beforeBubbl.starton Android, so an app can send people to its settings page (for example after a camera refusal) before it starts Bubbl. iOS 17+ already did. Below the minimum OS it stays a no-op.
5.0.0-alpha.1 #
- The v5 wrapper, Android and iOS: the native SDK's functions, as in docs/PUBLIC_API.md:
Bubbl.start, consent, permissions, segments,track, events (a Dart stream), the notification listener,presentand thereport*functions,submitSurvey,openCta,isBubblMessageanddiagnostics. JSON crosses the bridge; everything runs natively. Replaces the 4.x API (BubblSdk.instance.bootand the rest), with no compatibility layer. - Needs Flutter 3.32 or later. The plugin applies the Kotlin Gradle plugin only when the app has no Kotlin yet (older Flutter): with AGP 9's built-in Kotlin, or the KGP Flutter 3.44+ applies, it uses that, so newer Flutter no longer warns that it applies KGP.
- Diagnostics:
installIdandcredentialRejected. BubblCredentialRejectedevent (credential.rejected): Bubbl was started with an issued credential and the server refused it, so Bubbl has stopped.Bubbl.startWithCredential(BubblCredential(keyId:, secret:, installId:), options:): start with a device credential issued outside the app instead of an API key.BubblCredential'stoStringleaves the secret out.- The notification listener: a notification handed to Dart that Dart can't take (no handler after a hot restart, or a failure) is shown by Bubbl instead of being lost; and on Android, another Flutter engine going away (a background one) no longer turns the app's listener off.
- iOS: the SDK's privacy manifest (
PrivacyInfo.xcprivacy) comes with the plugin, under CocoaPods and Swift Package Manager; optional background refresh (see the README). BubblEvent(andBubblNotificationEvent) is an abstract class, no longer sealed: new kinds of event come in minor versions, so aswitchover events needs a default case.- iOS: pictures on Bubbl's pushes, through the app's notification service extension and the
BubblFlutterNotificationServicepod (import BubblNotificationService), with Swift Package Manager on or off. See the README. - Installs on Android 6 (API 23) and iOS 13 and does nothing below Android 8.1 / iOS 17:
Bubbl.isSupported,BubblDiagnostics.supported. A new app needs no minimum-version changes. - Sandbox:
Bubbl.registerTestDevice(code)→BubblTestDeviceResult;BubblDiagnostics.environmentand.testDevice(BubblTestDevice);BubblMessage.isSandbox. - pub.dev: topics, an example, dartdoc on every public member, no unused dependency; the README shows installing the 5.0 pre-release by version.
- README: the complete install, from a fresh
flutter create(minSdk 27, iOS 17 deployment target, the Play background-location declaration).
5.0.0-alpha.1 #
- Start of SDK v5, built against Bubbl's device API v1. Pre-release: not for production apps. The wrapper surface is unchanged in this alpha; the native engines move to the new API in later alphas (see MIGRATION.md when it lands).
4.1.7 #
- Bumps native SDK dependency to 4.1.7. The native Android/iOS SDKs no longer coerce location/notification/question/choice ids to Int before sending analytics, fixing UUID-formatted ids being silently dropped.
4.1.6 #
- Bumps native SDK dependency to 4.1.6 and fixes stale BubblSDK podspec pin.
4.1.5 #
- Aligns the Flutter wrapper with the native SDK 4.1.5 release.
4.1.1 #
- Aligns the Flutter wrapper with the native SDK 4.1.1 release.
4.1.0 #
- Device pipeline reliability hardening: 4xx/5xx error differentiation, flush mutex, atomic persistence, boot guard, queue TTL and max size.
4.0.7 #
- Aligns the Flutter wrapper with the native SDK 4.0.7 release.
4.0.6 #
- Aligns the Flutter wrapper with the native SDK 4.0.6 release.
4.0.5 #
- Aligns the Flutter wrapper with the native SDK 4.0.5 release.
- Native SDK reliability hardening: 4xx/5xx error differentiation, flush mutex, atomic persistence, boot guard, queue TTL and max size.
4.0.4 #
- Replays pending notification taps after the Flutter event stream attaches, so cold-start notification opens still reach the host app after iOS or Android has woken the process.
- Aligns the Flutter wrapper with the native SDK 4.0.4 release.
4.0.3 #
- Aligns the Flutter wrapper with the native SDK 4.0.3 release.
- Native SDK notification open interactions now ship
notification_openedactivity events to ingest instead of dropping them.
4.0.2 #
- Caps Android background location update distance independently from the campaign discovery radius so background geofence notifications can fire while apps request broad campaign discovery.
- Flutter wrapper
registerPushTokennow flushes the ingest queue immediately after queuing the device registration, so supplied FCM/APNs tokens reach the platform without requiring host apps to callflush()separately. - iOS APNs token forwarding now flushes immediately after registering the token with the native SDK.
- Aligns the Flutter wrapper with the native SDK 4.0.2 release.
4.0.1 #
- Android and iOS default notification modals now render image, audio, and video media inline instead of showing an external media button.
- YouTube notification media remains embedded in-app inside the default modal.
- Aligns the Flutter wrapper with the native SDK 4.0.1 release.
4.0.0 #
- Primes iOS native background region monitoring when location tracking starts and after geofence/location refresh calls, so background geofence notifications can fire without relying on foreground Dart UI execution.
- Handles iOS
UIApplication.LaunchOptionsKey.locationlaunches by restoring persisted SDK state and resuming native geofence monitoring before the Flutter UI mounts. - Registers the Flutter iOS plugin as an application delegate, requests APNs registration when push handling is enabled, and forwards APNs token/remote-notification callbacks into the native SDK.
- Aligns the Flutter wrapper with the native SDK 4.0.0 release.
3.1.7 #
- Aligns the Flutter wrapper with the native SDK 3.1.7 release.
- Android and iOS default notification modals now embed YouTube media in-app instead of handing off externally.
3.1.6 #
- Aligns the Flutter wrapper with the native SDK 3.1.6 release.
- Android geofence retrigger gates now suppress the same notification across a campaign while allowing distinct notifications to fire independently.
- Android method-channel void results are normalized to avoid
kotlin.Unitcodec errors from SDK controls such as geofence refresh.
3.1.5 #
- Aligns the Flutter wrapper with the native SDK 3.1.5 release.
- iOS notification tap handling now completes the
UNUserNotificationCenterDelegateresponse on the main actor to avoid UIKit state-restoration crashes when opening a notification from the tray.
3.1.4 #
- Aligns the Flutter wrapper with the native SDK 3.1.4 release.
- Android SDK notifications now create both the canonical
bubbl_notificationschannel and legacybubbl_pushchannel during install/boot so background FCM auto-rendering can use a heads-up capable channel. - Android local campaign notifications now render with high priority, message category, and default alert behavior for more reliable device banners.
3.1.2 #
- Persists iOS SDK boot configuration so background notification and location wakes can restore runtime state before React Native or Flutter host code has booted again.
- Aligns the Flutter wrapper with the native SDK 3.1.2 release.
3.1.1 #
- Restyles the native SDK default notification modal on Android and iOS with a light card layout, clearer actions, and polished survey controls.
- Adds regression coverage so survey options/choices continue to survive notification payload parsing.
- Aligns the Flutter wrapper with the native SDK 3.1.1 release.
3.0.6 #
- Adds Flutter geofence snapshot event models and native bridge handling so host apps can render active campaign polygons consistently across Android and iOS.
- Expands native geofence parsing to accept imported runtime aliases such as
locations,location,notifications, andcuratedNotifications. - Aligns the Flutter wrapper with the native SDK 3.0.6 release.
3.0.5 #
- Android SDK notifications now create the shared
bubbl_notificationschannel at high importance, replacing an older lower-importance channel when possible so eligible notifications can appear as heads-up banners. - Android SDK registration now emits a clear
firebase_config_missingerror when Firebase is not configured in the host app, instead of silently failing to register an FCM token. - iOS installs a retained default
UNUserNotificationCenterDelegatefrom the Flutter wrapper so foreground notifications use banner/list presentation and taps are forwarded to the SDK. - Filters paused and inactive runtime campaigns before they can surface through geofence or notification handling.
- Aligns the Flutter wrapper with the native SDK 3.0.5 release.
3.0.2 #
- Updated package metadata to use the GitHub
bubbl-platform/renewed-sdksource. - Removed the nightly environment from the public SDK surface.
3.0.1 #
- Added the initial Flutter v3 facade and model surface.
- Added native Android and iOS platform-channel bridge scaffolding to the Bubbl SDK v3 cores.
- Added baseline wrapper tests and publish metadata.