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

Add memory, battery and storage info to mobile context #476

Closed
matus-tomlein opened this issue Oct 7, 2021 · 0 comments
Closed

Add memory, battery and storage info to mobile context #476

matus-tomlein opened this issue Oct 7, 2021 · 0 comments
Assignees
Labels
status:completed Completed - but might not be released yet. type:enhancement New features or improvements to existing features.
Milestone

Comments

@matus-tomlein
Copy link
Contributor

We want to extend the range of device information sent as context along with events to automatically include memory, storage and battery properties. Concretely, we identified the following properties to include:

  • memory
    • physicalMemory – Total physical system memory in bytes
    • systemAvailableMemory – Available memory on the system in bytes (Android only)
  • battery
    • batteryLevel – Remaining battery level as an integer percentage of total battery capacity
    • batteryState – Battery state for the device
  • storage
    • availableStorage – Bytes of storage remaining
    • totalStorage – Total size of storage in bytes

The mobile_context schema version 1.0.2 provides properties for all the information (see issue here).

We decided to add the properties under the same tracker configuration for platform context (platformContext) as done with previous information about device platform (which included network status). We do not expect the new information to incur significant overhead in computation or space and so there is no need to introduce new configuration options.

@matus-tomlein matus-tomlein self-assigned this Oct 7, 2021
@matus-tomlein matus-tomlein added the type:enhancement New features or improvements to existing features. label Oct 7, 2021
@matus-tomlein matus-tomlein added this to the 2.3 milestone Oct 7, 2021
matus-tomlein added a commit that referenced this issue Oct 7, 2021
* Move helpers for getting device information from Util to DeviceInfoMonitor and deprecate ones in Util
* Add PlatformContext to initialize and update platform context sent along with events
* Add new types of device information (memory, battery, storage) to send in platform context
matus-tomlein added a commit that referenced this issue Oct 7, 2021
* Move helpers for getting device information from Util to DeviceInfoMonitor and deprecate ones in Util
* Add PlatformContext to initialize and update platform context sent along with events
* Add new types of device information (memory, battery, storage) to send in platform context
@AlexBenny AlexBenny added the status:completed Completed - but might not be released yet. label Oct 13, 2021
@AlexBenny AlexBenny modified the milestones: 2.3, 3.0 Oct 13, 2021
@AlexBenny AlexBenny mentioned this issue Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:completed Completed - but might not be released yet. type:enhancement New features or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

2 participants