【问题标题】:Parse.com for Android. Channel not showing in channel list适用于 Android 的 Parse.com。频道未显示在频道列表中
【发布时间】:2016-09-26 13:48:56
【问题描述】:

此帖无效 same problem

我的代码:

final ParseInstallation installation = ParseInstallation.getCurrentInstallation();
        installation.addAllUnique("channels", Arrays.asList(mAndroidTestChannal2));
        installation.saveInBackground(new SaveCallback() {
            @Override
            public void done(ParseException e) {
                ParsePush.subscribeInBackground(mAndroidTestChannal2, new SaveCallback() {
                    @Override
                    public void done(ParseException e) {
                        if (e == null) {
                            installation.saveInBackground(new SaveCallback() {
                                @Override
                                public void done(ParseException e) {
                                    if (e == null) {
                                        Log.d("com.parse.push", "successfully subscribed to the broadcast channel.");
                                    } else {
                                        Log.e("com.parse.push", "failed to subscribe for push", e);
                                    }
                                }
                            });
                            Log.d("com.parse.push", "successfully subscribed to the broadcast channel.");
                        } else {
                            Log.e("com.parse.push", "failed to subscribe for push", e);
                        }
                    }
                });
            }
        });

所有回调都成功记录,但我在推送仪表板的下拉列表中看不到频道。

我的主要问题是我无法从解析接收推送通知(仪表板说推送已发送到 0 个设备。)。我尝试注册不同的频道(生产基地有超过 10 万台设备),但在这种情况下失败了。 我错了什么? 解析 sdk - 最后,1.13.0

【问题讨论】:

    标签: android parse-platform show channel


    【解决方案1】:

    Parse.com 即将关闭,最好使用 Google Cloud Messaging )

    【讨论】:

    • 这不是我的决定。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-11-03
    • 2019-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-20
    • 2014-03-09
    相关资源
    最近更新 更多