@posthog/react-native-plugin
2.13.3
Patch Changes
- #5801
da31915Thanks @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
dc7e81fThanks @ioannisj! - Require posthog-ios 3.98.0 to pick up the iOS session replay fixes since 3.92.7: skip a screenshot whendrawHierarchyfails instead of uploading a blank frame, keep masks aligned withscreenshotModeBackgroundCaptureduring scroll and animation, schedule capture without swizzlingUIViewlayout, and fix replay crashes with customCALayersubclasses and the iPad print panel. (2026-11-18)
2.13.1
Patch Changes
- #5605
1ae99e2Thanks @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
a055ee6Thanks @ioannisj! - Require posthog-android 3.74.2. Android apps that do not setscreenshotScalenow capture session replay screenshots at one pixel per dp, so uploads are smaller. SetscreenshotScale: 1to keep native resolution. Session replay also recordsFLAG_SECUREwindows fully masked and drops frames where an animating view would expose masked content. (2026-10-30)
2.12.8
Patch Changes
- #5482
dfd56e6Thanks @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
39ff01aThanks @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
b21765aThanks @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 bothposthog-react-nativeand@posthog/react-native-plugin). Apps witherrorTracking.autocapture.nativeCrasheson anduncaughtExceptionsoff now get every fatal JS crash reported this way. (2026-10-14)
2.12.5
Patch Changes
- #5207
f047084Thanks @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
e4672b6Thanks @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
512d4c7Thanks @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
b4d4375Thanks @turnipdabeets! - Require posthog-android 3.71.2, which stops event properties from overriding$process_person_profileand$is_identifiedon native events (2026-09-29)
2.12.1
Patch Changes
- #5135
7e14f4dThanks @turnipdabeets! - Keep the JS layer's$process_person_profileand$is_identifiedon 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
f8d7db4Thanks @ioannisj! - AddgetSessionReplayDebugProperties()to read the native SDK's session replay debug map (2026-09-25) -
#5062
63b38adThanks @github-actions! - AdderrorTracking.autocapture.androidNdkCrashesto capture native C/C++ (NDK) crashes on Android 12+ (requires@posthog/react-native-plugin2.12.0). Updateposthog-androidto 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
17fb79bThanks @ioannisj! - Attach the native session replay debug properties to native crash$exceptionevents; requires posthog-ios 3.83.0 and posthog-android 3.70.0. (2026-09-25)
2.10.0
Minor Changes
-
#5040
ecdce70Thanks @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.uncaughtExceptionsnow 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/configrequest per launch as a result: the native SDKs fetch remote config at setup regardless ofpreloadFeatureFlags. (2026-09-23)
2.9.4
Patch Changes
- #4973
d59ac46Thanks @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. Requiresposthog-android3.66.0 andposthog-ios3.76.0. (2026-09-16)
2.9.3
Patch Changes
- #4929
87aadf7Thanks @turnipdabeets! - Android: a notification tap that launched the app is no longer captured as$push_notification_openedwhile 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
197a212Thanks @turnipdabeets! - iOS: a notification tap that launched the app is no longer captured as$push_notification_openedwhile the JS client is opted out, even if an earlier launch had opted the native SDK in. (2026-09-15) -
#4921
197a212Thanks @turnipdabeets! - Capture$push_notification_openedon iOS when a notification tap cold-launches the app, or setcom.posthog.posthog.CAPTURE_PUSH_NOTIFICATION_OPENEDtofalseinInfo.plistto opt out before any PostHog code runs, as in posthog-flutter. (2026-09-15)
2.9.1
Patch Changes
- #4919
61ef6a6Thanks @turnipdabeets! - Count a PostHog notification tap once when bothcapturePushNotificationOpenedand automatic capture report it, using the dedupe added inposthog-android3.65.0 andposthog-ios3.75.0. Update the native SDKs toposthog-android3.65.2 andposthog-ios3.75.2. (2026-09-15)
2.9.0
Minor Changes
- #4928
c7e592fThanks @marandaneto! - Add initialization-onlysessionReplayConfig.captureTouchesto disable replay touch coordinates without stopping screenshots on Android and iOS. (2026-09-14)
2.8.1
Patch Changes
- #4925
ffea9f7Thanks @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
fa6381bThanks @dustinbyrne! - Add experimental Android-onlyscreenshotScale,screenshotCompressionQuality, andscreenshotColorModeoptions tosessionReplayConfig, and bumpcom.posthog:posthog-androidto 3.63.1. (2026-09-11)
2.7.0
Minor Changes
- #4886
652a5bcThanks @itsalysialynn! - Expose rageClickConfig for tuning or disabling native iOS rage click detection from React Native. (2026-09-11)
2.6.0
Minor Changes
- #4858
233f501Thanks @turnipdabeets! - Capture$push_notification_openedon Android when a notification is tapped while the app is already running, not just on a cold start. Remove any manualcapturePushNotificationOpenedcall you wired tomessaging().onNotificationOpenedAppfor 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
f8013edThanks @gabrieldonadel! - Skip the explicit Kotlin plugin when AGP provides built-in KotlinAndroid Gradle Plugin 9 registers the
kotlinextension itself, so applyingkotlin-androidon 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 theandroid.builtInKotlinopt-out is removed. (2026-09-07)
2.5.1
Patch Changes
- #4677
c984623Thanks @turnipdabeets! - Update the native SDKs toposthog-ios3.70.1 andposthog-android3.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
ad6d5c6Thanks @dustinbyrne! - AddsessionReplayConfig.verifyScreenshotMaskAlignmentfor Android session replay. This option requires@posthog/react-native-plugin. (2026-08-24)
2.4.3
Patch Changes
- #4630
97e1cf8Thanks @turnipdabeets! - Fix session replay started withstartRecording()capturing nothing on Android by bumpingcom.posthog:posthog-androidto3.60.7. (2026-08-24)
2.4.2
Patch Changes
- #4624
41f276dThanks @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
6a35dc7Thanks @marandaneto! - Export the package metadata so consumers can resolve the installed plugin version. (2026-08-21)
2.4.0
Minor Changes
- #4505
ace454dThanks @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
- #4457
bfdab20Thanks @dustinbyrne! - Fix Android compilation with React Native 0.86. (2026-08-07)
2.3.0
Minor Changes
- #4429
1b6ed5aThanks @ioannisj! - Add the native push notification bridge, soposthog-react-nativecan 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, andresetfor runtime control from JS. - Supports a JS
pushIdentityProviderfor 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)
- Forwards the push config (
2.2.4
Patch Changes
- #4392
3d48c4bThanks @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
7c9de2fThanks @turnipdabeets! - Bumpcom.posthog:posthog-androidto3.54.0to 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
f4694e9Thanks @turnipdabeets! - Require posthog-ios 3.64.7 or later, so release builds can skip conflicting dSYM uploads (the Expo plugin'sskipOnConflictoption) 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
c5477ceThanks @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 registersJavascriptExceptionin posthog-android'serrorTrackingConfig.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
da33d9eThanks @ioannisj! - Add macOS support so the plugin builds on react-native-macos targets. The podspec now declares anosxplatform, 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
0f83f93Thanks @github-actions! - Add arequestHeadersoption 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
8b62007Thanks @ioannisj! - Raise the native SDK floor to the releases that skip session-replay event-trigger gating for React Native: posthog-ios~> 3.61.1andcom.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
c3a38fdThanks @ioannisj! - AddaddExceptionStep(message, properties?)for breadcrumb-style exception steps. Steps accumulate in a rolling, byte-bounded buffer (configurable viaerrorTracking.exceptionSteps) and are attached to every captured$exceptionas$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
bd80c7cThanks @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$exceptionevents. Works on Android (both architectures) and iOS (old architecture only). On the iOS new architecture, fatal JS exception events surface as a genericSIGABRTcrash event with no JS-error text in any field, so they currently cannot be filtered (2026-06-12) -
#3824
bd80c7cThanks @ioannisj! - Apply the session replay configuration at native SDK setup even when replay starts disabled, so recording turned on later (e.g.startRecordingor 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
04da1f8Thanks @ioannisj! - First release under the new name@posthog/react-native-plugin, picking up fromposthog-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 ofposthog-react-native. (2026-06-10)