You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a React Native app uses Bluebird for promises, Bugsnag will not report unhandled promise rejections.
Filing this as a bug rather than a feature request as looking at the changelog suggests Bluebird promises are supported, however support has only been implemented in the browser. Bluebird support was never added to plugin-react-native-unhandled-rejection-- although adding it seems very straightforward.
Using the existing Bugsnag code as an example, I've now implemented my own global unhandled rejection handler within my app and am manually creating Bugsnag events, which should hold us over until proper Bluebird support can be added for React Native. Unfortunately, I don't have time at the moment to ensure that this handles all edge cases and is sufficiently robust to commit back to the repo.
Steps to reproduce
Configure Bluebird as the global Promise implementation and Bugsnag to report unhandled Promise rejections.
Generate an unhandled Promise rejection.
Observe that it is not reported to Bugsnag.
Environment
React Native
bugsnag-js 7.9.5
The text was updated successfully, but these errors were encountered:
As discussed in the email chain, but for the benefit of the wider community, we will be looking to add this support for React Native when we can. I don't have any estimate on timeframe as yet but I will post here with any updates on this.
Describe the bug
If a React Native app uses Bluebird for promises, Bugsnag will not report unhandled promise rejections.
Filing this as a bug rather than a feature request as looking at the changelog suggests Bluebird promises are supported, however support has only been implemented in the browser. Bluebird support was never added to
plugin-react-native-unhandled-rejection
-- although adding it seems very straightforward.Using the existing Bugsnag code as an example, I've now implemented my own global unhandled rejection handler within my app and am manually creating Bugsnag events, which should hold us over until proper Bluebird support can be added for React Native. Unfortunately, I don't have time at the moment to ensure that this handles all edge cases and is sufficiently robust to commit back to the repo.
Steps to reproduce
Environment
React Native
bugsnag-js 7.9.5
The text was updated successfully, but these errors were encountered: