firebase / firebase/quickstart-android

I receive only last one message when turn on internet?

Aperta
#1,007 36 commenti 1 reazione 0 assegnatari Vedi su GitHub
api: messaging needs-attention
Lingua principale
Kotlin
Stelle
9.3k
Fork
7.4k
Merge medio
2g 19h
PR unite (30g)
8

Descrizione

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
```json
{
"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:

1. Turn off internet
2. send fcm message 10
3. Turn on internet
4. 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
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non viene fornito alcun file del repository, test o codice dell’applicazione riproducibile. Inizia esaminando le indicazioni di FCM sulle notifiche in background nelle issue #4 e #89, quindi riproduci il payload indicato e la sequenza offline sulle versioni di Android elencate. Il lavoro è completato quando viene stabilito se il comportamento è previsto e viene identificata una modifica concreta al repository o un aggiornamento della documentazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android
Ambito
mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.