Versions Compared

Key

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

...

1. Push Enable/Disable :

Sets weather whether push notification are to be sent to the device

...

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