Skip to main content

Upgrading from 1.x

Version 2.0.0 aligns the iOS SDK's payload and behaviour with the other B2Metric platform SDKs (Android, Flutter, React Native). Two changes require an edit at your call sites:

1.x2.0.0
start(apiKey:)start(apiKey:appIdentifier:) — appIdentifier is now required
setUser attributes were sent onceattributes now ride along on every subsequent event

Everything else is additive. Notable behaviour fixes you get for free:

  • An authentication failure no longer disables the SDK or discards queued events; only the rejected batch is dropped.
  • The pending-event queue is bounded (maxQueueSize, default 1000) instead of growing without limit.
  • The SDK no longer requests location permission or collects coordinates.
  • A single non-finite number in an event's properties no longer blocks the queue.