Environment

Adobe Mobile Services

Answer

Channel values can be sent directly in Mobile SDK call without setting up a Processing Rule.
It can be added in the java code of App.

Steps are as follows:

1. Create a context data variable 

2. Set the channel variable as "&&channel" within the context data variable

3. Pass the context data variable in trackState or trackAction call of Analytics.

Sample code snippet:

HashMap<String,Object> cdata=new HashMap<String,Object>();

cdata.put("&&channel","channelvaluehere");

Analytics.trackState("myapp", cdata);

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy