getsentry / sentry-dart

Sentry SDK for Dart and Flutter
https://sentry.io/for/flutter/
MIT License
764 stars 239 forks source link

_native?.displayRefreshRate() returns 0 on macOS Monterey and below #2301

Open stefanosiano opened 2 months ago

stefanosiano commented 2 months ago

Description

A user reported _native?.displayRefreshRate() returns 0 on macOS Monterey and below. While the user opened a PR to avoid the crash (and we should do it, of course), we may want to have a look at why it returns 0 in the first place

buenaflor commented 2 months ago

I'll check, we use this API for macos: https://developer.apple.com/documentation/coregraphics/1454099-cgdisplaycopydisplaymode

which is available from macos 10.6 which should be compatible

buenaflor commented 2 months ago

let's document that in troubleshooting that we might not support it in lower macos versions