sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Log when OTA updates are incompatible with the installed Native SDKs

Open lucas-zimerman opened this issue 2 months ago • 2 comments

Problem Statement

https://discord.com/channels/621778831602221064/1437530610011996250/1437889774554845204 and https://github.com/getsentry/sentry-react-native/issues/5162

and probably more causes, would benefit alot if we or the user had the information that X feature is not working because it requires a newer version of the Native SDK than the current one installed.

Solution Brainstorm

For the case of logs, check the minimum required version of the Native SDKs what works with it, if the value is lower or nor present, drop the log, add a internal log about why and create a client report informing that the log was dropped due to outdated Native SDK.

Other point is we could inform on changelog when a version is incompatible with OTA and requires a manual update.

Are you willing to submit a PR?

None

lucas-zimerman avatar Nov 12 '25 12:11 lucas-zimerman

RN-387

linear[bot] avatar Nov 12 '25 12:11 linear[bot]

If we use client report, do we need to update the JavaScript list of reasons? https://github.com/getsentry/sentry-javascript/blob/4c7d65e15519a3f1196794ebcf24c4eb0894f8c7/packages/core/src/types-hoist/clientreport.ts#L3-L13 to add something like 'outdated_native_sdk'

lucas-zimerman avatar Nov 12 '25 12:11 lucas-zimerman