2 Replies Latest reply on Dec 8, 2017 12:30 AM by julienp80647070

    Multiple Context Data in a single trackState Or trackAction

    julienp80647070 Level 2

      Hello,

       

      I am looking at the different documentation for the iOS and Android SDK and I am not sure if it is possible to send different context variable within the same State or Action.

      Documentation State for iOS & Android:

       

      It seems incredible that it is not possible, but how would you write that ?

      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
      
          // Adobe - track when this state loads 
          HashMap<String, Object> exampleContextData1 = new HashMap<String, Object>();
          exampleContextData1.put("myapp.login.LoginStatus", "logged in");
          HashMap<String, Object> exampleContextData2 = new HashMap<String, Object>();
          exampleContextData2.put("myapp.login.Template", "templateB");
      
          Analytics.trackState("Home Screen", exampleContextData1,exampleContextData2);
      }
      

       

      Any help, would be appreciated.

       

      Thanks