简体   繁体   English

没有传递自定义数据

[英]Apptentive custom data not being passed

I am integrating Apptentive on Android. 我正在将Apptentive集成到Android。 I am passing custom data to the Message Center but it is not display on the Apptentive website. 我正在将自定义数据传递到消息中心,但未在Apptentive网站上显示。 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? 有什么建议么?

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". 要查看自定义数据,只需将鼠标悬停在消息上,然后单击“显示自定义数据”。

在此处输入图片说明

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 http://www.apptentive.com/docs/android/features/#custom-data

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM