--- title: "Developer Guide" slug: "android-v6-api-guide" updated: 2026-03-10T11:51:42Z published: 2026-03-10T11:51:42Z canonical: "docs.mapp.com/android-v6-api-guide" --- > ## 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. # Developer Guide ## Overview This guide describes how to perform common operations using the **Mapp Engage Android SDK v6 (Appoxee SDK)**. It includes examples for working with: - push notification settings - user aliases - tags - custom attributes - device information --- ## Operations ### Push Enable/Disable This feature controls whether push notifications are sent to a device. **Push Enable/Disable:** ```java Appoxee.instance().setPushEnabled(true); ``` - Set to `true` to enable push notifications. - Set to `false` to disable push notifications. ### Alias An alias is a unique, user-specific identifier (e.g., the user's or internal Contact ID) that is limited to 254 characters. **Use Cases:** 1. Both the app owner and the Mapp Engage console use the same aliases to identify users. 2. All devices a specific user owns (e.g., iPhone, iPad) are linked by the same alias. 3. Aliases allow the segmentation of users based on specific user attributes. **Code Samples** ```java // Set Alias public RequestStatus setAlias(String alias) Appoxee.instance().setAlias(alias); // Get Alias public String getAlias() Appoxee.instance().getAlias(); // Added in v6 public RequestStatus setAlias(String alias, boolean resendAttributes) ``` > [!NOTE] > Note: > > - **Aliases** are user-specific and shared across devices. > - **Tags** are app-specific, and multiple tags can be assigned to a single device. > - When a new alias value is provided and `resendAttributes` is set to TRUE, it will trigger a re-sync of all previously set custom attributes with the backend. ### Tags Tags allow you to label users based on the app’s business logic. For example, pet owners can be tagged as "Dog," "Cat," or "Parrot." Tags are useful for creating segments of users and sending targeted push notifications. **Examples:** One notification can be sent to dog owners and another to cat owners. - **Add a Tag:** ```java public RequestStatus addTag(String tag) Appoxee.instance().addTag(tag); ``` - **Get Tags:** ```java public Set getTags() Appoxee.instance().getTags(); ``` - **Remove a Tag:** ```java public RequestStatus removeTag(String tag) Appoxee.instance().removeTag(tag); ``` ### Custom Fields Custom fields let you add specific information, such as strings, numbers, or date variables, to users. These fields help personalize push notifications and campaigns. **Use Cases** 1. Add a user's first name for personalized push messages (e.g., "Hi John, we are…"). 2. Use the user's birthday for a birthday campaign. 3. Segment users based on their game level. **Code Samples** ```java // Set a Custom Attribute public RequestStatus setAttribute(String key, String stringValue) public RequestStatus setAttribute(String key, Number numericValue) public RequestStatus setAttribute(String key, Date dateValue) Appoxee.instance().setAttribute(key, value); // Set Multiple Attributes public RequestStatus setAttributes(Map attributes) /* * Update multiple custom attributes in a single call. */ // Get a Custom Attribute public String getAttributeStringValue(String key) Appoxee.instance().getAttributeStringValue(key); ``` ### Device Info The Device Info API returns various device parameters, such as the installed OS name, version, or Appoxee SDK version. You can also use this API to set device parameters, such as increasing the number of products purchased through the device. **Device Info:** ```java public DeviceInfo getDeviceInfo() Appoxee.instance().getDeviceInfo(); ``` ### Log Out Logs out the current user and allows you to control whether push notifications continue. If set to `false`, the user won't receive push notifications until they log in again or enable push notifications. **Log Out:** ```java public void logOut(Application application, boolean pushEnable) Appoxee.instance().logOut(getApplication(), false); ``` A unique identifier automatically assigned by Mapp Engage when a new contact is added to the system. - The **Contact ID** cannot be changed or edited. - In some parts of Mapp Cloud, this identifier may also be referred to as **User ID**, but both terms describe the same concept. - You can find the Contact ID by going to *Audience > Contact Management > All Contacts* and checking the ID column. ## Related - [Initialize the SDK](/initialization-engage-android-sdk.md)