Reputation: 1413
I am integrating Apptentive on Android. I am passing custom data to the Message Center but it is not display on the Apptentive website. This is my code
HashMap<String, String> customData = new HashMap<String, String>();
//add package name
customData.put("package", getPackageName());
//show message center
Apptentive.showMessageCenter(ViralPopup.this, customData);
Any suggestions?
Upvotes: 0
Views: 553
Reputation: 34983
You are adding custom message data, which will only be sent alongside a successful Apptentive message.
You may want to instead add custom person or device data, which will be automatically added to that person's events in your dashboard:
Apptentive.addCustomPersonData(context, "city", "Seattle");
Apptentive.addCustomDeviceData(context, "color", "red");
Custom Data docs:
http://www.apptentive.com/docs/android/features/#custom-data
Upvotes: 1
Reputation: 19280
Custom Data sent in this manner is attached to the message that the user sends. If they don't send a message, then you won't see the custom data show up. If you do send a message, look at the actual message you receive in the conversation view on the server. The custom data should be visible on the message itself.
To view the custom data, you simply mouse over the message, and click "Show Custom Data".
Upvotes: 1