Tags

Prev Next

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.

      // Add a tag
      Appoxee.instance().addTag("DogOwner");
  2. Remove a Tag:

    • Remove an assigned tag from a user device.

      // Remove a tag
      Appoxee.instance().removeTag("DogOwner");
  3. Fetch Device Tags:

    • Retrieve all tags associated with a user device.

      // Fetch all tags
      Set<String> tags = Appoxee.instance().getTags();
  4. Clear Tags Cache:

    • Clear cached tags on the device.

      // Clear tags cache
      Appoxee.instance().clearTagsCache();

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.