Android Tags

❗️

Applicable only for Android App Push Notifications

Tags offer more flexibility over your segments. You can use tags to create a temporary segment that you can use to send out notifications to. These are usually used to send out alerts about a time-based event like a sports event or political events and have a limited validity.
After the event is completed, this segment is no longer of use.

Tags provide high flexibility in adding and removing users to a particular segment.

Adding Tags

Tags are created using our addTag() method. Following is a syntax that can be used to tag your subscribers.

List<String> data = new ArrayList<String>();
data.add("Enter_Tag_Name_Here");
iZooto.addTag(data);

The above code can be executed on specific user activity, like the click of a button or by default on a page visit.

🚧

There should be a corresponding UI Element for this code be to executed with the click of a button.

Multi Value Tags

You can assign multiple tags at the same time to a specific user. This is beneficial when you want to create 2 segments from a single activity performed by the user.
The following syntax must be followed:

List<String> data = new ArrayList<String>();
data.add("Tag_1");
data.add("Tag_2");
iZooto.addTag(data);

🚧

You can add up to 5 values in a multi value tag.

Removing Tags

Once your intended purpose is completed, it is a good practice to remove those tags from your users.
You can do so by calling our removeTag() method.
Following is a syntax that can be used to tag your subscribers.

List<String> data = new ArrayList<String>();
data.add("Tag_1");
iZooto.removeTag(data);

You can also use the removeTag method to remove multiple tags at the same time.

List<String> data = new ArrayList<String>();
data.add("Tag_1");
data.add("Tag_2");
iZooto.removeTag(data);

👍

You're done! You have now successfully tagged your users.

To learn how to send notifications to these users, visit our API Documentation.