Pushlink
  • Welcome to Pushlink Docs
  • Getting Started
  • Concerned about security?
  • Update Strategies
  • Android Device Id Guide
  • Metadata
  • Exception Notification
  • Pushlink APIs
  • Integrations
  • Android changes
  • Network problems?
  • Downgrade an APK?
  • Changelog
  • FAQ
Powered by GitBook
On this page

Metadata

Identify your devices in the 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());
...
PreviousAndroid Device Id GuideNextException Notification

Last updated 9 months ago