{"action":"created","issue":{"url":"https://api.github.com/repos/bugsnag/bugsnag-react-native/issues/47","repository_url":"https://api.github.com/repos/bugsnag/bugsnag-react-native","labels_url":"https://api.github.com/repos/bugsnag/bugsnag-react-native/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/bugsnag/bugsnag-react-native/issues/47/comments","events_url":"https://api.github.com/repos/bugsnag/bugsnag-react-native/issues/47/events","html_url":"https://github.com/bugsnag/bugsnag-react-native/issues/47","id":196539448,"number":47,"title":"Reporting unhandled errors not working on non-debug env.","user":{"login":"Andreyco","id":829963,"avatar_url":"https://avatars.githubusercontent.com/u/829963?v=3","gravatar_id":"","url":"https://api.github.com/users/Andreyco","html_url":"https://github.com/Andreyco","followers_url":"https://api.github.com/users/Andreyco/followers","following_url":"https://api.github.com/users/Andreyco/following{/other_user}","gists_url":"https://api.github.com/users/Andreyco/gists{/gist_id}","starred_url":"https://api.github.com/users/Andreyco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andreyco/subscriptions","organizations_url":"https://api.github.com/users/Andreyco/orgs","repos_url":"https://api.github.com/users/Andreyco/repos","events_url":"https://api.github.com/users/Andreyco/events{/privacy}","received_events_url":"https://api.github.com/users/Andreyco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-19T22:41:41Z","updated_at":"2016-12-23T20:23:58Z","closed_at":"2016-12-23T20:13:05Z","body":"**Symptoms:**\r\nHaving staging/release (or call it production) environment...\r\n- Bugsnag does not capture unhandled errors\r\n- Bugsnag does sent reports when `notify` is used.\r\n\r\nAll works as expected in development environment.\r\n\r\n**Possible source of this problem** - [default error handler](https://github.com/bugsnag/bugsnag-react-native/blob/master/lib/Bugsnag.js#L45-L47).\r\nWhat I understand, default error handler just shuts the app down - there is no time for Bugsnag to complete notification request.\r\n\r\n**Possible solution (maybe?)**\r\n- pass control to default handler when request is resolved. Control would be passed with _delay_.\r\n- cache and send reports on next start (this would probably require passing control to default handler with _delay_ anyway)\r\n\r\nNotes:\r\n- despite I tested Android only, it affects iOS as well."},"comment":{"url":"https://api.github.com/repos/bugsnag/bugsnag-react-native/issues/comments/269041637","html_url":"https://github.com/bugsnag/bugsnag-react-native/issues/47#issuecomment-269041637","issue_url":"https://api.github.com/repos/bugsnag/bugsnag-react-native/issues/47","id":269041637,"user":{"login":"Andreyco","id":829963,"avatar_url":"https://avatars.githubusercontent.com/u/829963?v=3","gravatar_id":"","url":"https://api.github.com/users/Andreyco","html_url":"https://github.com/Andreyco","followers_url":"https://api.github.com/users/Andreyco/followers","following_url":"https://api.github.com/users/Andreyco/following{/other_user}","gists_url":"https://api.github.com/users/Andreyco/gists{/gist_id}","starred_url":"https://api.github.com/users/Andreyco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andreyco/subscriptions","organizations_url":"https://api.github.com/users/Andreyco/orgs","repos_url":"https://api.github.com/users/Andreyco/repos","events_url":"https://api.github.com/users/Andreyco/events{/privacy}","received_events_url":"https://api.github.com/users/Andreyco/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T20:23:58Z","updated_at":"2016-12-23T20:23:58Z","body":"TY!"}}
{"actor":{"display_login":"Andreyco"}}