bubbl_flutter_sdk 5.3.0
bubbl_flutter_sdk: ^5.3.0 copied to clipboard
Bubbl for Flutter - geofenced and scheduled notifications, surveys and analytics, bridging the native Bubbl SDKs.
Changelog #
5.3.0 #
- Closed-app arrivals are far more reliable. Bubbl now watches a wider approach zone around every place (with a radius of at least 150 m, wider for big places; the dashboard can change this). When the phone enters a zone, Bubbl follows the location closely for a short time (up to 10 minutes, the dashboard can change this) so a small place is noticed within seconds, even with the app closed. Whether the phone is inside a circle is now decided by the SDK from precise location readings, not from the system's own alerts. If the closer tracking can't run, a re-check every 15 seconds is the fallback. Android: a location foreground service shows a small "Checking nearby offers" notice while it runs. iOS: needs "Always" location and the "Location updates" background mode (the blue location indicator shows while it runs). Without those, Bubbl notices the place from the next checks, as before.
- Optional always-on tracking, per workspace. A workspace can switch on continuous background location from the
dashboard (the server setting
geofencing.mode, "always"), as SDK 4 did, without an app release. Android shows a persistent notification while it runs; iOS needs "Always" and shows the blue indicator all the time. It uses much more battery. It is off by default, and nothing changes for a workspace that doesn't turn it on. Known limit: on Android 12 and later, always-on tracking can stop after the system ends the app's process, because Android refuses to start the location service from background work; it resumes at the next app open or geofence event (fix planned for 5.3.1). - A log of geofence decisions. The SDK keeps the last 100 geofence decisions on the device (native Diagnostics:
lastGeofenceSyncandrecentGeofenceDecisions) and reports them to Bubbl, so a missed arrival can be explained. The log level the app chose now also applies when Bubbl starts in the background (a closed-app launch). - A place drawn as a shape (a station forecourt) is now noticed while the app is closed. The SDK used to check the shape once, against the position at the edge of the circle around it, which is outside it, and never looked again. Now, while the device is in the circle but not the shape, it takes fresh positions until it is in the shape, leaves the circle, or Bubbl is stopped, paused or loses location consent. Places drawn as circles are covered by the zone tracking above.
- A position too old to say where the device is no longer decides a shape: Android ignores a cached position older than 30 s when asked for a precise one, and on iOS the age of a position is judged against the time it is used, within 30 s instead of 2 minutes.
- What your app must do. Android: declare the Play Console foreground service (location) form; the text is in
docs/STORE_COMPLIANCE.md. The SDK's manifest already adds theFOREGROUND_SERVICE_LOCATIONpermission and the service. Optionally set the stringsbubbl_tracking_*to change the notice's wording. iOS: ask for "Always" with honest permission text and addlocationtoUIBackgroundModes(Location updates); seedocs/INSTALL.md. - No API signature changes.
5.2.2 #
- A 429 from the device API is honoured on both platforms, so devices the server turns away under load
don't come back together (the server answers with an integer
Retry-Afterof 30–90 s when it is busy). Android used to retry on WorkManager's own 30 s / 1 min / 2 min backoff and ignoreRetry-After; it now waitsRetry-After(at least 30 s, at most 15 min, plus up to 10% of random jitter) before trying again. iOS already waited, but with no ceiling; the wait it asks for is now capped at 15 min too. Only whole seconds are read: an HTTP-date or a missing header is 30 s. - After a 429 the whole device holds, on both platforms: until the wait has passed, no call to the API goes out (each fails locally as a wait, without a request), so one refused call isn't followed by the config, events and device calls each collecting their own 429. Events stay queued and nothing is dropped. On iOS the maintenance chain stops after a config call that was refused or held, rather than going on to PUT /device, POST /events and the segments.
- Any HTTP 413 now drops the batch instead of stopping the event queue, including the load balancer's HTML 413 that carries no error code (BUB-346).
- A random wait before the requests a push sets off (geofence sync, reference-push fetch, Android event flush),
so a push to many devices doesn't reach the API at once. The server sets it with
sync.pull_jitter_seconds; a missing or zero value means no wait. The cap is 120 s on Android and 10 s on iOS (BUB-367). - No API signature changes.
5.2.1 - 2026-10-25 #
- The SDK privacy view is Continue-only: the "Not now" button is removed (App Store guideline 5.1.1(iv)), on both platforms. iOS: the view always goes on to the system prompt. Android: Back cancels the request without marking the view explained, so it shows again next time. No API signature changes; an app that relied on a "Not now" outcome now sees the system prompt every time the request runs.
- No Flutter-specific changes. The React Native Android build fix (RN 0.86) does not affect this package.
5.2.0 #
Additive; nothing changes unless an app calls the new APIs. On all four SDKs (Android, iOS, Flutter, React Native).
Bubbl.dismissPresented()closes the notification screen that is showing, if any, reported dismissed as its close button is. A no-op if nothing shows.Bubbl.present(message, region:)(Swiftpresent(_:region:), Kotlinpresent(message, region)): an optionalBubblPresentationRegion(insets,maxWidth,scrimOpacity) lays the card out inside a part of the screen. Without it, nothing changes.Bubbl.present(message, preview: true)(Swiftpresent(_:region:preview:), Kotlinpresent(message, region, preview)): for a notification no campaign delivered (the Showcase app's list). No notification, survey or media events are recorded for it (they would fail ingest: its id is not a campaign_notification_id), nor the dismissal fromdismissPresented(); exactly one custom event,showcase.preview_openedwith thenotification_id, is recorded instead. Opt-in; default unchanged.
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.