Can't show notification on system tray after restart device. (FCM)

Aperta
#777 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@kroikie ci sta già lavorando.

Dal 29/1/2019.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

api: messaging
Step 1: Are you in the right place?

Yes, I'm running the message project. (FCM)

Step 2: Describe your environment
  • Android device: Sumsang Note 8
  • Android OS version: 8.0
  • Google Play Services version: 14.7.99
  • Firebase/Play Services SDK version: 17.3.4
Step 3: Describe the problem:

When app is in foreground or in background (is running), works well. but once stoped by system or restart the device, can't receive notification to show on the system tray.

Steps to reproduce:
  1. Install the message app (quickstart-android/message) on device; and open it
  2. Push notification from Firebase console; works.
  3. put the app to the background
  4. push notification from Firebase console again, also works
  5. Restart device
  6. push notification from Firebase console, can NOT show notification on system tray.
Observed Results:

Nothing can be see on logcat

Expected Results:

When restart device, the notification should show on System tray, just like running in background.

Relevant Code:

has no extra code.

add result,

Run the following command,
adb shell dumpsys com.ginko.ginko | grep stopped

get lots of output like,
.....
User 0: ceDataInode=0 installed=true hidden=false suspended=false stopped=false notLaunched=false enabled=0 instant=false
User 150: ceDataInode=0 installed=true hidden=false suspended=false stopped=false notLaunched=false enabled=0 instant=false
....

Lingua principale
Kotlin
Stelle
9.3k
Fork
7.4k
Merge medio
7g 9h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/quickstart-android

Tutte le issue di firebase/quickstart-android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.