Show TOC

Automatically Collected DataLocate this document in the navigation structure

When enabled by the server and initialized, the Usage plugin automatically collects some standard usage information and uploads it to the SAP HANA Cloud Platform mobile services database.

By initializing the usage library, even if log() or timer() APIs are not explicitly invoked, the Usage plugin automatically gathers data about:
  • Standard usage frequency information:
    • User sessions (record of events and timer duration of the application in the foreground). A user session begins when the application comes to the foregroud (starts), and ends when the application goes to the background (stops).
    • Device OS, device OS version, device model ID. Device information is obtained directly from the OS. See the Cordova Device plugin for implementation details.
    • Application ID, and Application Version. Application information is obtained from the bundle.
  • Custom events, durations, and measurements:
    • Events and measurements: the log(name, info, type) API allows you to record common events or measurements, and the associated context information
    • Timers: the following APIs let you record the duration of common procedures, and any associated context information:
Note You can use timer and log APIs to collect data for preparing analytics and charts. To avoid recording or tracking details (about device, OS, or application, for specific user sessions) the custom events, durations, and measurements records are automatically associated with the standard usage frequency information.