Contents

@posthog/react-native-plugin

2.13.3

Patch Changes

  • #5801 da31915 Thanks @turnipdabeets! - Require posthog-ios 3.98.1 to reduce main-thread hangs in iOS session replay during fast scrolls and animations (2026-11-19)

2.13.2

Patch Changes

  • #5761 dc7e81f Thanks @ioannisj! - Require posthog-ios 3.98.0 to pick up the iOS session replay fixes since 3.92.7: skip a screenshot when drawHierarchy fails instead of uploading a blank frame, keep masks aligned with screenshotModeBackgroundCapture during scroll and animation, schedule capture without swizzling UIView layout, and fix replay crashes with custom CALayer subclasses and the iPad print panel. (2026-11-18)

2.13.1

Patch Changes

  • #5605 1ae99e2 Thanks @turnipdabeets! - Fix Android fatal JavaScript crash timestamps being shifted when the device clock differs from network time (2026-11-10)

2.13.0

Minor Changes

  • #5489 a055ee6 Thanks @ioannisj! - Require posthog-android 3.74.2. Android apps that do not set screenshotScale now capture session replay screenshots at one pixel per dp, so uploads are smaller. Set screenshotScale: 1 to keep native resolution. Session replay also records FLAG_SECURE windows fully masked and drops frames where an animating view would expose masked content. (2026-10-30)

2.12.8

Patch Changes

  • #5482 dfd56e6 Thanks @turnipdabeets! - Require posthog-ios 3.92.7 so session replay screenshots without masks upload at the same size as masked ones. Before, they were encoded at native scale, which could leave replay minutes behind. (2026-10-29)

2.12.7

Patch Changes

  • #5441 39ff01a Thanks @turnipdabeets! - Upgrade the Android SDK to 3.72.9, which pulls in OkHttp 4.12.1 to block the compromised eMudhra intermediate certificates. (2026-10-27)

2.12.6

Patch Changes

  • #5271 b21765a Thanks @posthog! - Report fatal JS crashes the JS error handler did not capture, such as React render errors on iOS, through native crash capture instead of dropping them (requires updating both posthog-react-native and @posthog/react-native-plugin). Apps with errorTracking.autocapture.nativeCrashes on and uncaughtExceptions off now get every fatal JS crash reported this way. (2026-10-14)

2.12.5

Patch Changes

  • #5207 f047084 Thanks @dustinbyrne! - Require posthog-android 3.71.6, which keeps replay uploads separate when the session or distinct ID changes and fixes corrupt gzip request bodies on Android. (2026-10-05)

2.12.4

Patch Changes

  • #5193 e4672b6 Thanks @dustinbyrne! - Require posthog-ios 3.88.2 to fix replay attribution across session and identity changes and a camera-picker replay crash. (2026-10-02)

2.12.3

Patch Changes

  • #5151 512d4c7 Thanks @arnohillen! - Require posthog-ios 3.86.1 and posthog-android 3.71.4, which stop session replay when the project is over its mobile session replay quota (2026-09-30)

2.12.2

Patch Changes

  • #5142 b4d4375 Thanks @turnipdabeets! - Require posthog-android 3.71.2, which stops event properties from overriding $process_person_profile and $is_identified on native events (2026-09-29)

2.12.1

Patch Changes

  • #5135 7e14f4d Thanks @turnipdabeets! - Keep the JS layer's $process_person_profile and $is_identified on fatal JS crashes captured through the Android native SDK, so they stay correct once posthog-android stops letting event properties override them (2026-09-28)

2.12.0

Minor Changes

  • #5111 f8d7db4 Thanks @ioannisj! - Add getSessionReplayDebugProperties() to read the native SDK's session replay debug map (2026-09-25)

  • #5062 63b38ad Thanks @github-actions! - Add errorTracking.autocapture.androidNdkCrashes to capture native C/C++ (NDK) crashes on Android 12+ (requires @posthog/react-native-plugin 2.12.0). Update posthog-android to 3.71.1 so these crashes are stamped at the right time when the device clock disagrees with network time. (2026-09-25)

2.11.0

Minor Changes

  • #5100 17fb79b Thanks @ioannisj! - Attach the native session replay debug properties to native crash $exception events; requires posthog-ios 3.83.0 and posthog-android 3.70.0. (2026-09-25)

2.10.0

Minor Changes

  • #5040 ecdce70 Thanks @hpouillot! - Capture fatal React Native JavaScript exceptions through the embedded native SDK, which persists them to its own disk queue synchronously, so a crash is not lost when the process terminates before AsyncStorage finishes writing. The JS queue copy is dropped when native takes the event, so each crash is still sent once.

    Enabling errorTracking.autocapture.uncaughtExceptions now initializes the native PostHog SDK on its own, since that queue is what makes the fatal path durable. Apps that previously enabled neither session replay, native crash autocapture nor push will see one additional /config request per launch as a result: the native SDKs fetch remote config at setup regardless of preloadFeatureFlags. (2026-09-23)

2.9.4

Patch Changes

  • #4973 d59ac46 Thanks @turnipdabeets! - Stop the native SDKs keeping their own opt-out state, so the consent the JS client resolves is the one they use at setup. Requires posthog-android 3.66.0 and posthog-ios 3.76.0. (2026-09-16)

2.9.3

Patch Changes

  • #4929 87aadf7 Thanks @turnipdabeets! - Android: a notification tap that launched the app is no longer captured as $push_notification_opened while the JS client is opted out, even if an earlier launch had opted the native SDK in. (2026-09-15)

2.9.2

Patch Changes

  • #4921 197a212 Thanks @turnipdabeets! - iOS: a notification tap that launched the app is no longer captured as $push_notification_opened while the JS client is opted out, even if an earlier launch had opted the native SDK in. (2026-09-15)

  • #4921 197a212 Thanks @turnipdabeets! - Capture $push_notification_opened on iOS when a notification tap cold-launches the app, or set com.posthog.posthog.CAPTURE_PUSH_NOTIFICATION_OPENED to false in Info.plist to opt out before any PostHog code runs, as in posthog-flutter. (2026-09-15)

2.9.1

Patch Changes

  • #4919 61ef6a6 Thanks @turnipdabeets! - Count a PostHog notification tap once when both capturePushNotificationOpened and automatic capture report it, using the dedupe added in posthog-android 3.65.0 and posthog-ios 3.75.0. Update the native SDKs to posthog-android 3.65.2 and posthog-ios 3.75.2. (2026-09-15)

2.9.0

Minor Changes

  • #4928 c7e592f Thanks @marandaneto! - Add initialization-only sessionReplayConfig.captureTouches to disable replay touch coordinates without stopping screenshots on Android and iOS. (2026-09-14)

2.8.1

Patch Changes

  • #4925 ffea9f7 Thanks @aramslegit! - Require posthog-ios 3.73.3 so React Native apps get the session replay masking fixes shipped in posthog-ios 3.73.2 and 3.73.3. (2026-09-12)

2.8.0

Minor Changes

  • #4907 fa6381b Thanks @dustinbyrne! - Add experimental Android-only screenshotScale, screenshotCompressionQuality, and screenshotColorMode options to sessionReplayConfig, and bump com.posthog:posthog-android to 3.63.1. (2026-09-11)

2.7.0

Minor Changes

  • #4886 652a5bc Thanks @itsalysialynn! - Expose rageClickConfig for tuning or disabling native iOS rage click detection from React Native. (2026-09-11)

2.6.0

Minor Changes

  • #4858 233f501 Thanks @turnipdabeets! - Capture $push_notification_opened on Android when a notification is tapped while the app is already running, not just on a cold start. Remove any manual capturePushNotificationOpened call you wired to messaging().onNotificationOpenedApp for Android: that tap is now captured automatically, so the manual call counts it a second time. (2026-09-10)

2.5.2

Patch Changes

  • #4789 f8013ed Thanks @gabrieldonadel! - Skip the explicit Kotlin plugin when AGP provides built-in Kotlin

    Android Gradle Plugin 9 registers the kotlin extension itself, so applying kotlin-android on top of it fails configuration with "Cannot add extension with name 'kotlin'". The plugin is now applied only when nothing has registered that extension yet, which keeps AGP 8 working unchanged and covers AGP 10, where the android.builtInKotlin opt-out is removed. (2026-09-07)

2.5.1

Patch Changes

  • #4677 c984623 Thanks @turnipdabeets! - Update the native SDKs to posthog-ios 3.70.1 and posthog-android 3.61.0, fixing session replay masks drifting off their content during scroll, a crash when replay console-log capture tears down on iOS, and web-scoped surveys showing on native Android. (2026-08-28)

2.5.0

Minor Changes

  • #4529 ad6d5c6 Thanks @dustinbyrne! - Add sessionReplayConfig.verifyScreenshotMaskAlignment for Android session replay. This option requires @posthog/react-native-plugin. (2026-08-24)

2.4.3

Patch Changes

  • #4630 97e1cf8 Thanks @turnipdabeets! - Fix session replay started with startRecording() capturing nothing on Android by bumping com.posthog:posthog-android to 3.60.7. (2026-08-24)

2.4.2

Patch Changes

  • #4624 41f276d Thanks @marandaneto! - Require posthog-ios 3.69.10 so native dSYMs are uploaded after they are ready. (2026-08-24)

2.4.1

Patch Changes

  • #4585 6a35dc7 Thanks @marandaneto! - Export the package metadata so consumers can resolve the installed plugin version. (2026-08-21)

2.4.0

Minor Changes

  • #4505 ace454d Thanks @marandaneto! - Add native Swift Package Manager support for React Native 0.87's experimental CocoaPods-free iOS integration. (2026-08-13)

2.3.1

Patch Changes

2.3.0

Minor Changes

  • #4429 1b6ed5a Thanks @ioannisj! - Add the native push notification bridge, so posthog-react-native can register device tokens and capture notification opens through the native PostHog SDKs.
    • Forwards the push config (capturePushNotificationSubscriptions, capturePushNotificationOpened) to posthog-ios and posthog-android at setup.
    • Bridges registerPushNotificationToken, unregisterPushNotificationToken, capturePushNotificationOpened, setOptOut, and reset for runtime control from JS.
    • Supports a JS pushIdentityProvider for projects that require identity-verified subscriptions.
    • Captures cold-start notification opens on Android by inspecting the launch Activity's intent at setup, which posthog-android's own lifecycle integration cannot observe in React Native apps. (2026-08-05)

2.2.4

Patch Changes

  • #4392 3d48c4b Thanks @github-actions! - Raise the minimum posthog-ios dependency to 3.69.0 to include the rage-click sheet dismissal fix. (2026-08-03)

2.2.3

Patch Changes

  • #4154 7c9de2f Thanks @turnipdabeets! - Bump com.posthog:posthog-android to 3.54.0 to pick up the session replay ANR fix from 3.53.7: clearing the replay buffer on session rotation (e.g. identify() at login) no longer blocks the main thread waiting on the replay executor. (2026-07-15)

2.2.2

Patch Changes

  • #4148 f4694e9 Thanks @turnipdabeets! - Require posthog-ios 3.64.7 or later, so release builds can skip conflicting dSYM uploads (the Expo plugin's skipOnConflict option) instead of failing when a dSYM with the same UUID but different content already exists in PostHog. (2026-07-14)

2.2.1

Patch Changes

  • #4126 c5477ce Thanks @turnipdabeets! - Fix fatal JS errors being double-reported on Android in minified release builds: the plugin's dedup matched serialized class-name strings, which R8/ProGuard renaming can defeat. It now registers JavascriptException in posthog-android's errorTrackingConfig.ignoredExceptionTypes (requires core 6.24.0), which matches by class across the cause chain and is unaffected by minification. (2026-07-10)

2.2.0

Minor Changes

  • #4110 da33d9e Thanks @ioannisj! - Add macOS support so the plugin builds on react-native-macos targets. The podspec now declares an osx platform, and all iOS-only posthog-ios APIs (session replay config, surveys, session-recording controls) are guarded with #if os(iOS). Session replay remains iOS-only; macOS gets native error tracking. (2026-07-10)

2.1.2

Patch Changes

  • #3970 0f83f93 Thanks @github-actions! - Add a requestHeaders option to send custom headers (e.g. Authorization) with SDK requests, including session replay and native error/crash uploads via the native plugin. Useful for reverse-proxy setups that require authentication. (2026-07-01)

2.1.1

Patch Changes

  • #3931 8b62007 Thanks @ioannisj! - Raise the native SDK floor to the releases that skip session-replay event-trigger gating for React Native: posthog-ios ~> 3.61.1 and com.posthog:posthog-android:3.51.1. Required for React Native event-triggered session replay to record. (2026-06-23)

2.1.0

Minor Changes

  • #3861 c3a38fd Thanks @ioannisj! - Add addExceptionStep(message, properties?) for breadcrumb-style exception steps. Steps accumulate in a rolling, byte-bounded buffer (configurable via errorTracking.exceptionSteps) and are attached to every captured $exception as $exception_steps, giving the error tracking UI a timeline of recent activity before each error. When native crash capture is enabled, steps are forwarded to the embedded native SDK so native crashes carry the same timeline. (2026-06-19)

2.0.1

Patch Changes

  • #3824 bd80c7c Thanks @ioannisj! - Drop native captures of fatal React Native JS errors that the JS layer already reports, so a fatal JS error no longer produces two $exception events. Works on Android (both architectures) and iOS (old architecture only). On the iOS new architecture, fatal JS exception events surface as a generic SIGABRT crash event with no JS-error text in any field, so they currently cannot be filtered (2026-06-12)

  • #3824 bd80c7c Thanks @ioannisj! - Apply the session replay configuration at native SDK setup even when replay starts disabled, so recording turned on later (e.g. startRecording or a linked feature flag) uses screenshot mode, the configured masking, and the configured snapshot endpoint instead of wireframe/default settings (2026-06-12)

2.0.0

Major Changes

  • #3783 04da1f8 Thanks @ioannisj! - First release under the new name @posthog/react-native-plugin, picking up from posthog-react-native-session-replay@1.6.0. Alongside the existing session replay support, the plugin now enables native error tracking — iOS and Android crash autocapture via the underlying PostHog mobile SDKs. It will be consumed by future versions of posthog-react-native. (2026-06-10)