Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

tag is used to label users with different elements of the app's business logic. 
For example, if your app is intended for pet owners, you can define the different pets as tags ("Dog", "Cat", “Parrot” etc.) and then label users with different tags, depending on the pets they own. 
Tags are a useful way to create Segments: Groups of devices that share the same parameters (in this case, the tag values). 
You can then send Push notifications to the relevant segments (for example, one notification for dog owners and another for cat owners). 

Expand
titleiOS [Objective-C]

Code Block

Expand
titleiOS [Swift]

Code Block

Expand
titleAndroid [Java]

Code Block
//Add a tag to device
public RequestStatus addTag(String tag)
  
//use this syntax to add tag
Appoxee.instance().addTag(tag);



//Get all tags apply to the device
public Set<String> getTags()
  
//use this syntax for getting all tags
 Appoxee.instance().getTags()


//Remove tag for device, pass tag into parameter, which you want to remove
public RequestStatus removeTag(String tag){
  
//use this syntax for removing tag
Appoxee.instance().removeTag(removeTag)