apptentive / apptentive-android

Apptentive Android SDK
http://www.apptentive.com
BSD 3-Clause "New" or "Revised" License
65 stars 64 forks source link

Apptentive GCM notification behaving differently when app is in background. #120

Closed sarath-hotspot closed 7 years ago

sarath-hotspot commented 8 years ago

When Apptentive GCM integration is enabled, and app is in background, app's GCM listener is not getting called.

I integrated my android app with apptentive as per GCM instructions in https://docs.apptentive.com/android/integration/

When I reply to a message from apptentive web UI, I am observing two notification behaviors at app side.

When app is opened, my own GCM listener is getting called. When app is not in opened state, my own GCM listener is not getting called, however I am seeing a notification with app's default icon, "You have a new message" " ".

I am not sure who is creating this new/unwanted notification. It is causing problem because, clicking this new notification is taking user to my activity, but not opening message center.

Sdk version is 2.1.3 Device running Android 5.1.1

aminelaadhari commented 8 years ago

@skykelsey here the explanation of the issue http://stackoverflow.com/questions/35480573/gcmlistenerservice-is-not-called-when-application-is-in-background?rq=1

The server should send Data messages to allow customise the notifications. It's very annoying...

skykelsey commented 8 years ago

Thanks for reporting this. We are looking into implementing a solution for this, and will be rolling one out in the near future.

aminelaadhari commented 8 years ago

@skykelsey any updates on this issue ? we can't drop parse because of this

skykelsey commented 8 years ago

Hello Amine,

I'm sorry for the delay on this. We are investigating a fix in the current sprint, so hopefully we will be able to provide a solution in the next couple weeks, although I can't promise. We are working on improvements to how we handle push in general that should make integration simpler as well.

aminelaadhari commented 8 years ago

Hello @skykelsey. Any news about this ?

msaffitz commented 7 years ago

We are in the final stages of testing a release of the SDK that will resolve this issue, and I anticipate it being available within the next couple of weeks. Please keep an eye on our GitHub repository for availability.

skykelsey commented 7 years ago

Fixed in 3.3.0. Please let me know if you have any problems upgrading.