I receive only last one message when turn on internet?
還沒有人認領這個 Issue。
評估
研究方向
未提供任何儲存庫檔案、測試或可重現的應用程式程式碼。先查看 issue #4 和 #89 中關於 FCM 背景通知的指南,然後在列出的 Android 版本上重現所述 payload 和離線序列。完成的標準是確認該行為是否符合預期,並找出具體的儲存庫變更或文件更新。
由索引模型根據 Issue 內容生成。
描述
send with notification payload for background notification.
but if send without "notification" payload i receive notification is normal when send while device off internet and then device turn on internet.
https://fcm.googleapis.com/fcm/send
{
"to":"....",
"data":{
"destination":"1",
"source":"2",
"badge":"1"},
"notification":{
"title":"Hello7","body":"Hello Test"
},
"priority":"high"
}
Step 1: Describe your environment
- Android device: test on Pixel 2xl,Oneplus6,Oppo F7
- Android OS version: Android 10,9,8
- Google Play Services version: Last
- Firebase/Play Services SDK version: Last
Step 2: Describe the problem:
Steps to reproduce:
- Turn off internet
- send fcm message 10
- Turn on internet
- Receive only last one message and 9 message not receive
Note**: but when send notification while device online notification receive normal
Observed Results:
2019-12-03 14:03:47.765 4931-4931/? V/FA-SVC: NetworkBroadcastReceiver received action: android.net.conn.CONNECTIVITY_CHANGE
2019-12-03 14:03:47.801 4931-15302/? V/FA-SVC: Unregistering connectivity change receiver
2019-12-03 14:03:47.802 4931-15302/? V/FA-SVC: Upload scheduled in approximately ms: 3047916
2019-12-03 14:03:47.802 4931-15302/? V/FA-SVC: Cancelling job. JobID: 812057698
2019-12-03 14:03:47.811 4931-15302/? V/FA-SVC: Scheduling upload with GcmTaskService
2019-12-03 14:03:47.811 4931-15302/? V/FA-SVC: Scheduling task with Gcm. time: 3047916
2019-12-03 14:03:48.216 10173-15301/com.tss.testfcmraw D/FA: Logging event (FE): notification_receive(_nr), Bundle[{ga_event_origin(_o)=fcm, message_type(_nmc)=display}]
2019-12-03 14:03:48.309 10173-15301/com.tss.testfcmraw V/FA: Connecting to remote service
2019-12-03 14:03:48.330 10173-15301/com.tss.testfcmraw D/FA: Connected to remote service
2019-12-03 14:03:48.333 10173-15301/com.tss.testfcmraw V/FA: Processing queued up service tasks: 1
2019-12-03 14:03:48.367 4931-15302/? V/FA-SVC: Logging event: origin=fcm,name=notification_receive(_nr),params=Bundle[{ga_event_origin(_o)=fcm, message_type(_nmc)=display}]
2019-12-03 14:03:48.395 4931-15302/? V/FA-SVC: Saving event, name, data size: notification_receive(_nr), 35
2019-12-03 14:03:48.396 4931-15302/? V/FA-SVC: Event recorded: Event{appId='com.tss.testfcmraw', name='notification_receive(_nr)', params=Bundle[{ga_event_origin(_o)=fcm, message_type(_nmc)=display}]}
2019-12-03 14:03:48.398 4931-15302/? V/FA-SVC: Upload scheduled in approximately ms: 3047320
2019-12-03 14:03:48.399 4931-15302/? V/FA-SVC: Cancelling job. JobID: 812057698
2019-12-03 14:03:48.402 4931-15302/? V/FA-SVC: Scheduling upload with GcmTaskService
2019-12-03 14:03:48.402 4931-15302/? V/FA-SVC: Scheduling task with Gcm. time: 3047320
2019-12-03 14:03:48.407 4931-15302/? V/FA-SVC: Background event processing time, ms: 41
2019-12-03 14:03:53.373 10173-15301/com.tss.testfcmraw V/FA: Inactivity, disconnecting from the service
Expected Results:
When turn on internet i want to get 10 notification.
Relevant Code:
// TODO(you): code here to reproduce the problem
- 主要語言
- Kotlin
- 星號
- 9.3k
- 分支
- 7.4k
- 平均合併
- 7 天 9 小時
- 30 天內合併 PR
- 6
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
firebase/quickstart-android 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 35/100
firebase/quickstart-android#2756 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
firebase/quickstart-android#2754 · 5 則留言 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 32/100
firebase/quickstart-android#2668 ·
-
難度 4/5 3-5 天 新手友好度 25/100
firebase/quickstart-android#2663 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
firebase/quickstart-android#1669 · 3 則留言 ·
查看 firebase/quickstart-android 的全部 Issue
相似的 Issue
-
android:plan main:plan packages:learn
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆
-
Needs Triage
難度 2/5 1-3 小時 新手友好度 72/100
ankidroid/Anki-Android#23453 ·
維護者通常 1 天內回覆
-
afk-ok area:data-quality importer size:S
難度 2/5 1-3 小時 新手友好度 78/100
enorm-labs/event-junkie#5278 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
bazel-contrib/rules_kotlin#1846 ·
維護者通常 2 天內回覆