I'm trying to send notification to an specefic device using Parse In android. this is my code for ParseInstallation:
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.put("device_id", "1234567890");
installation.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
Log.d(TAG, "done1: "+e);
}
});
and this is my code for sending the notificaiton to specefic device that i already installed :
ParseQuery query = ParseInstallation.getQuery();
query.whereEqualTo("device_id", "1234567890");
ParsePush push = new ParsePush();
push.setQuery(query);
push.setMessage("salamm");
push.sendInBackground(new SendCallback() {
@Override
public void done(ParseException e) {
Log.d(TAG, "done: "+e);
}
});
and i get this error in log : done: com.parse.ParseRequest$ParseRequestException: unauthorized: master key is required
can anyone help me with this?