Skip to content

Instantly share code, notes, and snippets.

@celiovasconcelos
Forked from pushlink/globalinfo.java
Created October 22, 2017 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save celiovasconcelos/cf9a444a8674de5ac938176cdbbe4384 to your computer and use it in GitHub Desktop.
Save celiovasconcelos/cf9a444a8674de5ac938176cdbbe4384 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());
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment