【问题标题】:send push notifications to a specific channel向特定频道发送推送通知
【发布时间】:2015-06-02 02:44:40
【问题描述】:

假设我订阅了多个频道,我如何向特定频道发送消息?

我使用了以下几行:

push.setMessage(msg);
push.sendInBackground();

我也尝试使用push.setChannel(SPECIFIC CHANNEL); 行,但它没有用....

但显然这还不够,因为它会将消息发送到所有渠道。

【问题讨论】:

    标签: android parse-platform channel


    【解决方案1】:

    您必须设置要推送到的频道。

      public void pushData(String channel, String Message) {
        ParsePush push = new ParsePush();
        push.setChannel(channel);
        push.setMessage(Message);
        push.sendInBackground();
    }
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-23
    • 2017-08-19
    • 1970-01-01
    相关资源
    最近更新 更多