PackageTrack
Sign in Get early access

b2metric_sdk

B2Metric analytics SDK for Flutter. Collects events, manages sessions, and supports push notifications on Android and iOS.

1.0.0

What this package is like to depend on

Last release 1 months ago

22 Jul 2026

Ships on a steady schedule

a new release about every 3 weeks

Nearly every release is documented

notes for 5 of 5 stable releases

Nothing withdrawn

no release was ever pulled

3 months old

5 releases · first in 2026

5 releases in the last 12 months

see the full history below

Release timeline

5 releases · May 2026 to Jul 2026
Release Pre-release

Releases

latest 5
  1. 1.0.0 22 Jul 2026
    Release notes

    Changed

    • First stable release. The public API is now considered stable under semantic versioning. No functional changes since 0.4.0.
    Open source →
  2. 0.4.0 23 Jun 2026
    Release notes

    Added

    • B2Metric.setUser() to identify the current user and update their profile attributes. Accepts userId (required) plus optional name, surname, email, and any custom attributes via properties.
    • B2MetricUser type export.

    Changed

    • User attributes set via setUser are merged into the user_properties of subsequent events. The user_properties of each event is now a point-in-time snapshot, and device-collected fields always take precedence over custom attributes.
    Open source →
  3. 0.3.0 01 Jun 2026
    Release notes

    Added

    • iOS Swift Package Manager (SPM) support, required for Flutter 3.44+ where SPM is the default iOS/macOS dependency manager. CocoaPods support is retained, so existing apps are unaffected.
    Open source →
  4. 0.2.0 20 May 2026
    Release notes

    Added

    • appIdentifier field in B2MetricConfig to identify the app registered in B2Metric. Validated as lowercase snake_case (^[a-z][a-z0-9]*(_[a-z0-9]+)*$).
    • app_identifier is now included in collected user properties.

    Changed

    • BREAKING: B2Metric.init() now requires appIdentifier in addition to apiKey. Calls without it will throw at initialization.
    Open source →
  5. 0.1.0 17 May 2026
    Release notes

    Added

    • Initial release of the B2Metric Flutter SDK.
    • Custom event tracking with properties and item-level data.
    • Automatic session management (first_open, session_start, session_end).
    • Push notification token registration (FCM, HMS, APNS) and open tracking.
    • Offline event queuing with persistent storage on SharedPreferences / UserDefaults.
    • Automatic batching, retry with exponential backoff, and network-aware delivery.
    • Automatic device and app metadata collection.
    • Optional onLog callback to forward SDK logs to a custom sink.
    • Example testbed app under example/.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive