1
在我的應用程序中,即時通訊使用推送通知,因此我打算使用android C2DM。關於Android中C2DM服務器中的Gmail ID使用情況?
但我GOOGLE了幾次,並且在爲此設置Gmail帳戶時有點困惑。
下面是我遵循的步驟
第一步:註冊谷歌C2DM服務器與郵件ID,如「[email protected]」
在此之後,當我試圖實現它在Android中,一些容易混淆的出現,即
Intent rI = new Intent ("com.google.android.c2dm.intent.REGISTER");
rI.putExtra("app",PendingIntent.getBroadcast(this, 0, new Intent(), 0));
rI.putExtra("sender", "Gmail Id");
this.startService(rI);
在這種
rI.putExtra("sender", "Gmail Id");
實際我必須使用哪個gmail id?是我在C2DM服務器上註冊的用戶還是用戶的gmail id(使用設備帳戶)。
任何幫助是appreciated.Thanks
OK Abhi ...感謝您的快速響應。 – 2012-04-16 05:59:59