今日、gcmの使用方法をテストしています。それはうまくいくが、私は二重の通知を得る。ダブルgcmの通知
通知が届いてから数分後に2回の通知が表示されるのは、最初の通知と全く同じ内容の2番目の通知です。
私は私が間違っているつもりだところ私にはわからないGCM with PHP (Google Cloud Messaging)
を使用して通知をテストしています..私はこれが
02-27 16:05:36.192: V/GCMBroadcastReceiver(513): onReceive: com.google.android.c2dm.intent.RECEIVE
02-27 16:05:36.192: V/GCMBroadcastReceiver(513): GCM IntentService class: mypackage.GCMIntentService
02-27 16:05:36.201: V/GCMBaseIntentService(513): Acquiring wakelock
02-27 16:05:36.221: V/GCMBaseIntentService(513): Intent service name: GCMIntentService-DynamicSenderIds-2
02-27 16:05:36.312: V/GCMBaseIntentService(513): Releasing wakelock
.
.
.
02-27 16:11:14.282: V/GCMBroadcastReceiver(513): onReceive: com.google.android.c2dm.intent.RECEIVE
02-27 16:11:14.282: V/GCMBroadcastReceiver(513): GCM IntentService class: mypackage.GCMIntentService
02-27 16:11:14.291: V/GCMBaseIntentService(513): Acquiring wakelock
02-27 16:11:14.302: V/GCMBaseIntentService(513): Intent service name: GCMIntentService-DynamicSenderIds-3
02-27 16:11:14.402: V/GCMBaseIntentService(513): Releasing wakelock
をデバッグlogcatでエミュレータを使用してテストし、実際のデバイス よ
でもfacebook pushは数日間同じ問題を抱えていますが、私は同じことを経験していますnotwise 2wiseサーバーに問題があるはずです - あなたは心配しないでください –
エラーはGoogleにありますか?それは私のコードではないのですか?私はhttp://developer.android.com/google/gcm/index.htmlと同じように実装しています – user1912180
私はそう思っています.. facebokksアプリが同じメッセージのために2つのnotifを取得するというシナリオに夢中になります:) –