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

Flutter firebase messaging push notification format 3 lines #5

Open
ShrutiThakur01 opened this issue Jan 24, 2020 · 1 comment
Open

Comments

@ShrutiThakur01
Copy link

Hello

I am working on firebase push notification for my project. I am receiving notification on all my devices.

My issue is

iOS devices showing notifications in below format.

Title  :
Subtitle :
text/body:

My android devices showing notifications in below format.

Title :
text/body:

below is the payload i am using for sending notification.

 var payload = {   "notification":{
          "title":"New Price Alert! "+ clientDataAfter.productname,
"subtitle":"Get before its gone",
          "body":"Old Price "+clientDataAfter.oldprice+" || New Price "+ clientDataAfter.newprice,
          "click_action":"FLUTTER_NOTIFICATION_CLICK",
        },
        "data" : {
          "id":ID,
          "name": Name,
          "newprice":newprice
        }, }

I want to show notifications in 3 line format on both iOS and android. How can i achieve this?

Thanks in advance.

@ShrutiThakur01
Copy link
Author

Hello .. Awaiting answer...

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

1 participant