[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stonyz opened this issue Dec 26, 2018 · 4 comments
Open

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

stonyz opened this issue Dec 26, 2018 · 4 comments
Assignees

Comments

@stonyz
Copy link
stonyz commented Dec 26, 2018

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

@kroikie
Copy link
Contributor
kroikie commented Jan 4, 2019

@stonyz can you please add the result of this adb command:

adb shell dumpsys package | grep stopped

after you restart the device?

@stonyz
Copy link
Author
stonyz commented Jan 5, 2019

Thanks @kroikie , just updated the description.

get many duplicated output like below,

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

@kroikie
Copy link
Contributor
kroikie commented Jan 29, 2019

@stonyz Looking at the results of adb shell dumpsys <your package name> | grep stopped your app seems to be running and thus should get the notification. Does this only happen on Sumsang Note 8 or is this something that you can reproduce on other devices?

@kingstertime
Copy link

@stonyz Hi! Did you manage to fix this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@stonyz @kroikie @samtstern @kingstertime and others