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

Background Notification not working #86

Closed
jtushar53 opened this issue Jul 16, 2016 · 2 comments
Closed

Background Notification not working #86

jtushar53 opened this issue Jul 16, 2016 · 2 comments
Assignees

Comments

@jtushar53
Copy link

Step 1: Are you in the right place?

yes

Step 2: Describe your environment

  • Android device: Xiaomi MI5
  • Android OS version: 6.0
  • Google Play Services version: 9.2.56
  • Firebase/Play Services SDK version: 9.2.1

Step 3: Describe the problem:

Can't get push notification in background / when app is closed (swiped from recents apps)

Steps to reproduce:

followed these steps
and from POSTMAN
header
Authorization:key=xxxxxxxxxxxxx
Content-Type:application/json
below is payload
{
"notification":{
"title":"Notification title",
"body":"Notification body",
"sound":"default"
},
"to":"d5nwyla-QAY:APA91bEUlVdu8kahO2L7GZc0sdGnjAieBMY6zFSY2r-B-cvTveLpW0_lCNHSQ7R4q3DKzY1VOwVDhpDuOTPGW400SrYGxn3jTlPZU3sVi6zAd7wBYgyqIydVsKuOVWrtVe-CpEC7Sqvt",
"priority":"high",
"data":{
"param1":"value1",
"param2":"value2"
}
}

Observed Results:

getting notification in-app also when app is minimise (pressing home)

getting below warning from logcat
07-16 23:40:55.161 2941 2941 W GCM-DMM : broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000000 pkg=com.infogain.bioclinica (has extras) }

Expected Results:

Should get notification in background

@kroikie kroikie self-assigned this Jul 18, 2016
@kroikie
Copy link
Contributor

kroikie commented Jul 18, 2016

This seems to be a duplicate of #89 so I'm closing it. Please create a new issue if this is not a duplicate.

@kroikie kroikie closed this as completed Jul 18, 2016
@daveabes
Copy link

daveabes commented Apr 9, 2018

Also getting this on a Mobicel Device... Unable to resolve with any data found on the internet yet.

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

No branches or pull requests

3 participants