以下は、Google から GCM に登録する方法です。コードの 2 行目のどこに appid を配置しますか? appid が Google App Engine 上の私のプロジェクトの名前であると考えてみてください。
sender は、アプリケーションにメッセージを送信することを承認されたアカウントの ID であり、通常は、アプリケーションの開発者によって設定されたアカウントの電子メール アドレスです。app はアプリケーションの ID であり、PendingIntent で設定され、登録サービスがアプリケーション情報を抽出できるようにします。例えば:
Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0)); // boilerplate
registrationIntent.putExtra("sender", "someemail@oo.com");
startService(registrationIntent);