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

notification bigText style #178

Open
felipeaugusto1 opened this issue Apr 26, 2019 · 3 comments
Open

notification bigText style #178

felipeaugusto1 opened this issue Apr 26, 2019 · 3 comments

Comments

@felipeaugusto1
Copy link

how can we make an expandable local notification, with a big text? right now it only shows one line.

@windydang26
Copy link

me too, i have use setBigText, but not result.

@jdvvaghelaoffice
Copy link

how can we make an expandable local notification, with a big text? right now it only shows one line.

To use bigText in android you can use below code:
let notification = new firebase.notifications.Notification();
notification.android.setBigText(text, contentTitle, summaryText);

I don't used setTitle, setBody, setData while using above setBigText property.
so my final code for android and ios was

let notification = new firebase.notifications.Notification(); if (Platform.OS == 'android') { notification.android.setBigText(body, title); notification.android.setPriority(firebase.notifications.Android.Priority.High); notification.android.setChannelId("test-channel"); } else { notification = notification.setTitle(title).setBody(body).setData(data) } firebase.notifications().displayNotification(notification);

@jdvvaghelaoffice
Copy link

me too, i have use setBigText, but not result.
You can use #178 (comment)

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