I'm trying to prevent a couple of errors from being sent to Sentry, so I'm using the ignoreErrors option. However, it doesn't seem to be working as I expected. Here's my setting:
// rest of settings object
ignoreErrors: [
'AudioFocusNotAcquiredException',
'Payment is Cancelled',
'UiConfirmCanceledError'
]
}
Yet, I'm seeing this error being logged:
Error: expo.modules.av.AudioFocusNotAcquiredException: Audio focus could not be acquired from the OS at this time.
My impression based on the documentation is that "When using strings, partial matches will be filtered out.", i.e that having "AudioFocusNotAcquiredException" as a string in the options array for ignoreErrors would mean that the error would be filtered out since it contains that string.
Did I misunderstand how to use this?