Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populate app/device metadata fields for RN errors #763

Merged
merged 3 commits into from
Jul 23, 2020

Conversation

fractalwrench
Copy link
Contributor

Goal

Fixes the population of the following app/device metadata fields in RN errors:

app.name
device.batteryLevel
device.charging
device.simulator
device.timezone
device.wordsize

This changeset comes in two parts:

  1. Performing an initial sync of metadata whenever a state event observer is added. This allows the JS layer on React Native to pass down the stateless fields in metadata.
  2. Always adding stateful device metadata fields when notifyInternal is called.

Tests

Verified in a local example app that the fields are populated.

@fractalwrench fractalwrench force-pushed the v7rn-app-device-population branch from c693f21 to 4b09b69 Compare July 23, 2020 11:47
@fractalwrench fractalwrench merged commit fe46699 into react-native-plugin Jul 23, 2020
@fractalwrench fractalwrench deleted the v7rn-app-device-population branch July 23, 2020 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants