您好在我的应用程序中我想将通知发送到特定的设备。任何人请告诉我我必须添加此代码。发送到多个设备它的工作,但我想发送特定的设备。
import com.parse.Parse;
import com.parse.ParseInstallation;
import com.parse.ParseUser;
import com.parse.PushService;
import android.app.Application;
public class ParseApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// Add your initialization code here
//Parse.initialize(this, "YOUR_APP_ID", "YOUR_CLIENT_KEY");
//Parse.initialize(this, "", "");
ParseUser.getCurrentUser().getObjectId();
ParseInstallation.getCurrentInstallation().saveInBackground();
Parse.initialize(this, "C2yxkDNMYElOezmEogThD9juS41XbF9ReGq2Avfx", "eL5aveox8KmGfUF613d9PjLhwvCM8aV7MTvV5wH8");
PushService.setDefaultPushCallback(this, abc.class);
}
谢谢,