quickstart-android icon indicating copy to clipboard operation
quickstart-android copied to clipboard

Android PushNotification Title issue when app is in background

Open bhaskar2342 opened this issue 8 years ago • 3 comments

I have an issue with setContentTitle. Im working with flavors in android. I'm comfortably receiving notifications when app is in foreground/background/killed. But the problem is when app is in background/killed the title i'm receiving is incorrect i.e the title i'm getting from server what they've set but not the flavors title. If the app is in foreground the title works fine. For example i have 2 flavors Flavor1 and Flavor2 and set the titles as F1 and F2 respectively and from server side they set the title as TstNotif. When the app is in foreground the title for the notification i'm receiving is F1 or F2 depends on flavor, but when the app is in background i'm receiving TstNotif for both the flavors. For iOS they are working fine....! When i send from FCM console everything works fine in all aspects...!

bhaskar2342 avatar May 08 '18 10:05 bhaskar2342

Fist to check firebase description for update version Orio android api level 27 and see the Notification channel id and how to implement for Notification as Background and foreground as vise bellowing the document as a firebase "https://firebase.google.com/docs/cloud-messaging/concept-options " i hope that help to you and feting more description about firebase Notification Messaging Thanks, By Rupesh Gohil

rupeshgohil avatar May 11 '18 04:05 rupeshgohil

@bhaskar2342 I apologize that nobody from our team ever got to this issue when you filed it. Since it is very old and @rupeshgohil has offered some advice I assume that you have either found the fix or moved on. If you experience something similar now please file a new bug.

samtstern avatar May 20 '20 19:05 samtstern

It got fixed. Thanks for your help..!

On Thu, May 21, 2020 at 12:52 AM Sam Stern [email protected] wrote:

@bhaskar2342 https://github.com/bhaskar2342 I apologize that nobody from our team ever got to this issue when you filed it. Since it is very old and @rupeshgohil https://github.com/rupeshgohil has offered some advice I assume that you have either found the fix or moved on. If you experience something similar now please file a new bug.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/firebase/quickstart-android/issues/491#issuecomment-631674994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIEKN3UPEIGST5UBJMBKCMTRSQUV3ANCNFSM4E6ZSIIQ .

bhaskar2342 avatar May 21 '20 04:05 bhaskar2342