module.exports = (NativeClient) => ({
  load: (client) => {
    client.addOnError(async event => {
      const {
        threads,
        breadcrumbs,
        app,
        device
      } = await NativeClient.getPayloadInfo({ unhandled: event.unhandled })

      event.breadcrumbs = breadcrumbs
      event.app = { ...event.app, ...app }
      event.device = { ...event.device, ...device }
      event.threads = threads
    }, true)
  }
})

@@ -171,16 +171,61 @@
   device
+,%0A        deviceMetadata,%0A        appMetadata
 %0A      %7D
@@ -457,16 +457,110 @@
 threads%0A
+      event.addMetadata('device', deviceMetadata)%0A      event.addMetadata('app', appMetadata)%0A
     %7D, t

Add native device/app metadata to event