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

Offen
#777 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@kroikie arbeitet bereits daran.

Seit 29.1.2019.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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
....

Vorherrschende Sprache
Kotlin
Sterne
9.3k
Forks
7.4k
Ø Merge
7 T. 9 Std.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus firebase/quickstart-android

Alle Issues in firebase/quickstart-android

Ähnliche Issues

Weitere Issues zu Kotlin

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.