Skip to content

feat: Nintendo Switch support #2198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat: Nintendo Switch support #2198

wants to merge 2 commits into from

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Jun 18, 2025

We'll need to find a way to deal with statically built sentry-native.

Follow up on fixing the installation instructions in https://github.com/getsentry/sentry-switch/pull/26

Todos:

  • Import sentry-switch
  • Figure out how to load sentry-native as a static lib
  • AnalyticsSessionInfo::get_userId is not valid
  • The reported operating system name is Nintendo OS. See feat: parsing for Nintendo Switch os.name relay#4821
  • Log Forwarder throws with: Unable to load 'msvcrt'
  • Cannot start network transport because network_connect_func option is not set
  • No support for IL2CPP line numbers. Fails here
    var nativeLen = nativeStackTrace.Frames.Length;
    var eventLen = sentryStacktrace.Frames.Count;
    if (nativeLen != eventLen)
    {
    Options.DiagnosticLogger?.LogWarning(
    "Native and sentry stack trace lengths don't match '({0} != {1})' - this may cause invalid stack traces.",
    nativeLen, eventLen);
    }
  • Debug symbol upload? There is this .nss file
  • Add capture_message to the native samples
  • When writing the options, also create the proper folder structure to support Switch in Assets/Plugins/Sentry/Switch and drop a textfile in there detailing how to add/get support

Copy link
Contributor

github-actions bot commented Jun 18, 2025

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Nintendo Switch support ([#2198](https://github.com/getsentry/sentry-unity/pull/2198))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against b66cbe5

@bitsandfoxes bitsandfoxes changed the title feat: Add support for Nintendo Switch feat: Nintendo Switch support Jun 20, 2025
@bitsandfoxes bitsandfoxes mentioned this pull request Jun 20, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant