【发布时间】: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