As of SDK 4.3, you can update profile values in In-App creatives. In order to accomplish this, you can use the following code:
if (typeof localytics.setProfileAttribute === "function") {
localytics.setProfileAttribute("Favorite Team", "Red Sox", "app");
}
The if
check in the above code will check to see if the Localytics function is supported. If the same creative is being delivered to users on multiple SDKs, this will prevent any issues from occurring for users below SDK 4.3 (but no profile attribute will be tagged for these users).
An example creative can be downloaded from here.