Skip to content

v0.8.5

@nedylasfalte86 nedylasfalte86 tagged this 09 May 19:30
New PionneOptions field 'enableInDev' (default true for backward
compat). Pass false to make Pionne.init() no-op when the host runs
under __DEV__ (Metro / Expo Go / dev build).

Solves two long-standing dev pains:
- Polluted prod dashboard with debug-time events from local Metro
  reloads and Expo Go play sessions.
- Bundle ID mismatch headache: Expo Go ships as host.exp.Exponent,
  which never matches the bundle pinned on a real project — events
  get 403'd silently and (pre-0.8.4) sessions still flipped to
  'crashed' creating phantom Release Health entries.

When enableInDev is false in __DEV__: no global handlers installed,
no session opened, no geo lookup, no captureXxx calls do anything.
A single console.info on init makes it visible the SDK is dormant
on purpose.
Assets 2
Loading