Manage tags

Tags are a useful way to target specific users. Every device that has an associated tag (segment) will receive campaigns that are also associated with that tag.

To manage the tags on Android devices we have provided three useful static methods:

  • Tango.addTags(Set<String>) - associates a set of tags with the current device;
  • Tango.deleteTags(Set<String>) - removes a set of tags for the current device;
  • Tango.getTags() - returns a set of tags associated with the device.

Note

It is important to note the fact that tags can be associated with the device externally. However, Tango.getTags() will only return the tags managed locally with Tango.addTags() and Tango.deleteTags().