Skip to content

Instantly share code, notes, and snippets.

@pushlink
Last active October 22, 2017 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pushlink/d88aa9bdebe04754bf8a to your computer and use it in GitHub Desktop.
Save pushlink/d88aa9bdebe04754bf8a to your computer and use it in GitHub Desktop.
//This information will be shown in two places: "Installations" and "Exceptions" tabs of the web administration
PushLink.addMetadata("Ip", getIp());
PushLink.addMetadata("Phone Number", getPhoneNumber());
PushLink.addMetadata("Brand", Build.BRAND);
PushLink.addMetadata("Model", Build.MODEL);
PushLink.addMetadata("OS Version", Build.VERSION.RELEASE);
PushLink.addMetadata("Logged in user", getUserName());
...
//This information will be shown ONLY in the "Exceptions" tab of the web administration
PushLink.addExceptionMetadata("Battery Level", getBatteryLevel());
PushLink.addExceptionMetadata("Network Status", getNetworkStatus());
...
@acrogenesis
Copy link

where are getBatteryLevel() and getNetworkStatus() defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment