--- title: "Tags" slug: "tags-1" updated: 2024-12-10T13:22:09Z published: 2024-12-10T13:22:09Z canonical: "docs.mapp.com/tags-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Tags ## Overview Tags in Android applications label and categorize users based on their app interactions or preferences. These tags enable targeted messaging and segmentation for personalized user engagement. ## Use Case 1. **Purpose**: - Categorize users into meaningful segments (e.g., "Dog Owners," "Frequent Shoppers"). - Enable dynamic push notifications based on user-defined tags. 2. **Benefits**: - Simplify user segmentation for marketing campaigns. - Increase user engagement by delivering relevant content. ## Implementation Details 1. **Add a Tag**: - Assign a tag to a user device. ```java // Add a tag Appoxee.instance().addTag("DogOwner"); ``` 2. **Remove a Tag**: - Remove an assigned tag from a user device. ```java // Remove a tag Appoxee.instance().removeTag("DogOwner"); ``` 3. **Fetch Device Tags**: - Retrieve all tags associated with a user device. ```java // Fetch all tags Set tags = Appoxee.instance().getTags(); ``` 4. **Clear Tags Cache**: - Clear cached tags on the device. ```java // Clear tags cache Appoxee.instance().clearTagsCache(); ``` > [!NOTE] > Keep in mind: > > - Tags are app-specific and allow for multiple tags per user device. > - Use meaningful tag names to simplify campaign management. > - Test tag addition, removal, and retrieval processes for accuracy. ## Related - [Custom Attributes](/custom-attributes.md) - [Push Notifications](/push-notifications.md) - [Push Payload Details](/push-payload-details.md)