Metadata

VH
Last updated 6 months ago

Identify your devices in best way adding tags to them

Add some metadata to identify the device/user:

//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());
...