Android 没有用于解析的注册设备
它进入“成功订阅了广播频道”,但当我试图推它时,它说 你没有注册安装你的应用程序。您可以开始阅读我们的快速入门指南 我也尝试过切换到数据网络,但仍然不起作用。Android 没有用于解析的注册设备,android,parse-platform,push-notification,Android,Parse Platform,Push Notification,它进入“成功订阅了广播频道”,但当我试图推它时,它说 你没有注册安装你的应用程序。您可以开始阅读我们的快速入门指南 我也尝试过切换到数据网络,但仍然不起作用。 知道可能是什么问题吗?不需要订阅Background 确保已在Manifest.xml中设置应用程序类 Parse.initialize(this, "appid" ,"client Id"); ParseInstallation.getCurrentInstallation().saveInBackground();
知道可能是什么问题吗?不需要订阅Background
确保已在Manifest.xml中设置应用程序类
Parse.initialize(this, "appid" ,"client Id");
ParseInstallation.getCurrentInstallation().saveInBackground();
ParsePush.subscribeInBackground("", new SaveCallback() {
@Override
public void done(ParseException e) {
if (e == null) {
Logger.d("com.parse.push", "successfully subscribed to the broadcast channel.");
} else {
Logger.e("com.parse.push", "failed to subscribe for push"+ e);
}
}
});
无需订阅后台
确保已在Manifest.xml中设置应用程序类
Parse.initialize(this, "appid" ,"client Id");
ParseInstallation.getCurrentInstallation().saveInBackground();
ParsePush.subscribeInBackground("", new SaveCallback() {
@Override
public void done(ParseException e) {
if (e == null) {
Logger.d("com.parse.push", "successfully subscribed to the broadcast channel.");
} else {
Logger.e("com.parse.push", "failed to subscribe for push"+ e);
}
}
});
也许你应该在parse的后台控件中注册你的应用。即使是为了测试也需要注册应用吗?parse.initialize(这是“appid”,“client Id”);您从何处获得appid?在应用程序名称中,转到设置-->键,设置>键中提供了id。请检查权限标记和接收者标记中的清单文件中的包名是否正确。也许您应该在parse的后台控件中注册您的应用程序。是否确实需要注册应用程序以进行测试?parse.initialize(此“appid”、“client id”);您从何处获得appid?在应用程序名称中,请转到设置-->键确切地说,id是在设置>键中提供的。并检查权限标记和接收者标记的清单文件中的包名称是否正确。
public class ParseSample extends Application {
@Override
public void onCreate() {
super.onCreate();
Parse.initialize(this, "ID", "KEY");
ParseInstallation.getCurrentInstallation().saveInBackground();
} }