Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants