-
Notifications
You must be signed in to change notification settings - Fork 224
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
Add a platform context plugin to the React Native tracker to track device information #1395
Add a platform context plugin to the React Native tracker to track device information #1395
Conversation
BundleMonFiles added (6)
Total files change +105.95KB 0% Final result: ✅ View report in BundleMon website ➡️ |
382f387
to
939388c
Compare
3a6dd59
to
8700480
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
/** | ||
* Amount of memory in bytes available to the current app. | ||
* The property is not tracked in the current version of the tracker due to the tracker not being able to access the API, see the issue here: https://github.com/snowplow/snowplow-ios-tracker/issues/772 | ||
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it tracked if it's set with PlatformContextRetriever?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's true, when it's manually provided by the PlatformContextRetriever
, then it should be added to the platform context.
…vice information # Conflicts: # api-docs/docs/react-native-tracker/markdown/react-native-tracker.reactnativetracker.md # api-docs/docs/react-native-tracker/react-native-tracker.api.md # trackers/react-native-tracker/src/constants.ts # trackers/react-native-tracker/src/tracker.ts # trackers/react-native-tracker/test/tracker.test.ts
8700480
to
07180aa
Compare
…vice information (#1395)
…vice information (#1395)
Adds the platform context to the React Native tracker that tracks information about the device.
The information available in React Native is quite limited, so only a few properties are auto-tracked: osType, osVersion, deviceManufacturer, deviceModel, resolution, language, scale
The rest can be provided by a
platformContextRetriever
configuration option. This is the same as on our mobile trackers.There is also an option to provide
platformContextProperties
configuration option that filters which properties will be tracked. Also reflects our mobile trackers.