【发布时间】:2015-06-02 02:44:40
【问题描述】:
假设我订阅了多个频道,我如何向特定频道发送消息?
我使用了以下几行:
push.setMessage(msg);
push.sendInBackground();
我也尝试使用push.setChannel(SPECIFIC CHANNEL); 行,但它没有用....
但显然这还不够,因为它会将消息发送到所有渠道。
【问题讨论】:
标签: android parse-platform channel
假设我订阅了多个频道,我如何向特定频道发送消息?
我使用了以下几行:
push.setMessage(msg);
push.sendInBackground();
我也尝试使用push.setChannel(SPECIFIC CHANNEL); 行,但它没有用....
但显然这还不够,因为它会将消息发送到所有渠道。
【问题讨论】:
标签: android parse-platform channel
您必须设置要推送到的频道。
public void pushData(String channel, String Message) {
ParsePush push = new ParsePush();
push.setChannel(channel);
push.setMessage(Message);
push.sendInBackground();
}
【讨论】:
data 和notification。 channelId 会在其中一个对象中吗?