我认为您忘记了(正如错误消息告诉您的那样)注册该设备!
ParseUser user = new ParseUser();
user.setUsername("jondoe");
user.setPassword("123456");
user.setEmail("jon@gmail.com");
user.signUpInBackground(new SignUpCallback() {
public void done(ParseException e) {
if (e == null) {
// Hooray! Let them use the app now.
} else {
// Sign up didn't succeed. Look at the ParseException
// to figure out what went wrong
}
}
@Override
public void done(com.parse.ParseException arg0) {
// TODO Auto-generated method stub
}
});
设备注册后,系统知道向谁发送通知!此外,在“数据浏览器”选项卡中的 Parse.com 仪表板中,如果单击左侧的“安装”,则必须看到一行。