在Android中使用parse发送客户端推送通知

在Android中使用parse发送客户端推送通知,android,parse-platform,notifications,push-notification,Android,Parse Platform,Notifications,Push Notification,我正在尝试使用Parse.com向所有订阅者发送通知。 当我从parse.com控制台进行推送广播时,我能够接收 但是,我正在尝试从客户端应用程序(Android)发送通知 我尝试了以下解决方案,但没有成功: 解决方案1: ParsePush push = new ParsePush(); String message = txt.getText().toString(); push.setChannel("ABC"); push.setMessage(message); push.sendIn

我正在尝试使用Parse.com向所有订阅者发送通知。 当我从parse.com控制台进行推送广播时,我能够接收

但是,我正在尝试从客户端应用程序(Android)发送通知

我尝试了以下解决方案,但没有成功: 解决方案1:

ParsePush push = new ParsePush();
String message = txt.getText().toString();
push.setChannel("ABC");
push.setMessage(message);
push.sendInBackground();
解决方案2:

                ParseObject message = ParseObject.create("Message");
                message.put(AppConfig.PARSE_APPLICATION_ID, username);
                message.put("body", txt.getText().toString());
                message.saveInBackground(new SaveCallback() {
                    @Override
                    public void done(ParseException e) {
                        //Toast.makeText(activity.this, "Successfully created message on Parse",Toast.LENGTH_SHORT).show();
                    }
                });
解决方案3:

                ParseQuery pushQuery = ParseInstallation.getQuery();
                pushQuery.whereEqualTo("channels", "ABC"); // Set the channel

                ParsePush push = new ParsePush();
                push.setQuery(pushQuery);
                push.setMessage("New Update");
                push.sendInBackground();

谁能帮我找到并给我指一下正确的方向吗。谢谢

您是否在应用程序的解析设置页面上启用了客户端推送功能?顾客push@kabuto178是的,我有我在同一条船上。。。无法在同一应用程序中接收。我想这就是你所说的。