Versions Compared

Key

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

...

  • The app owner and Appoxee both use the same alias to identify the user.
  • All devices owned by a specific user (an iPhone, an iPad etc.) are identified by the same alias.
  • Aliases are used to create segments of application users, based on user-specific properties (as opposed to application-specific properties).


 

Note

Note the difference between aliases and tags:

  • Aliases are user-specific, and each user can only have one alias (shared by all the user's devices). 
  • Tags are app-specific, and you can assign multiple tags to the same device. 


  Set Alias: Sets the device alias, replacing the current alias value.

Code Block
titleSample code for set alias
linenumberstrue
public RequestStatus setAlias(String alias)
 
//use this syntax to set alias
Appoxee.instance().setAlias(alias);
 


Get Alias: Get the alias value

Code Block
titleSample code for Get Alias
linenumberstrue
public String getAlias()
 
//use this syntax to get alias
 Appoxee.instance().getAlias();

 


3. Tags

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). 

Add Tag:  Add a tag to device

Code Block
titleSample code for Add Tag
linenumberstrue
public RequestStatus addTag(String tag)
 
//use this syntax to add tag
Appoxee.instance().addTag(tag);
 


Get Tags: get all tags apply to the device

Code Block
titleSample code for Get Tag
linenumberstrue
public Set<String> getTags()
 
//use this syntax for getting all tags
 Appoxee.instance().getTags()
 


Remove Tag: remove tag for device, pass tag into parameter, which you want to remove

Code Block
titleSample code for Remove Tag
linenumberstrue
public RequestStatus removeTag(String tag){
 
//use this syntax for removing tag 
Appoxee.instance().removeTag(removeTag)

 


4. Custom Fields: 

In the same way you use tags to mark your users with different business logic information, you can add custom strings, numbers and date variables. The information you set on each user can later be used to segment the users and create personalized dynamic push messages.

For example:

  • Add a user's first name to create personal push messages: " Hi John, we are...."
  • Add a user's birthday and use it to create a periodic birthday campaign to congratulate users on their birthday
  • Add a user's level in the game and use it to segment the users according to the level they have reached in your game

Set Custom Attribute: Set string, numeric & date as attribute. Pass key for attribute name

Code Block
titleSample code for Custom Attribute
linenumberstrue
public RequestStatus setAttribute(String key, String stringValue)
public RequestStatus setAttribute(String key, Number numericValue)
public RequestStatus setAttribute(String key, Date dateValue)
 
//use this syntax to set custom attribute
Appoxee.instance().setAttribute(key, value)
 


Get Custom Attribute: pass key, which you use to set attribute


 

Code Block
titleSample code for Get Custom Attribute
linenumberstrue
public String getAttributeStringValue(String key)
 
//usse this syntax to get custom attribute
Appoxee.instance().getAttributeStringValue(key)
 


5. Device Info:

The Device Info API is used to return various device parameters, such as the device Operating System name and number, or the version number of the Appoxee SDK installed on this device.

You can also use the API to set device parameters, for example: increase the number of products purchased through this device.

Code Block
titleSample code for Device Info
linenumberstrue
public DeviceInfo getDeviceInfo()
 
//use this syntax to get device info
Appoxee.instance().getDeviceInfo()