getsentry / sentry-dart

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

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

Open stefanosiano opened 1 week ago

stefanosiano commented 1 week 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 4 days 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 3 days ago

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