Expanded text for local notification in Android

#1

Hi,

I am using local notification for a scheduled notification. I am not able to show a big expanded text in the notification for Android. Attached is the screenshot of the same. Can someone help me fix the same?

I can see that Android has bigText notifications, is there a way I can add the same through expo notifications?

Thanks,

#2

Hi!

Expo actually does use bigText for notifications. The text is truncated in the initial notification view, as seen in your screenshot, but when expanded should show the full text.

#3

No, am not able to expand it. Any clue why?

#4

@satya164 have you guys come across this issue? I grokked through the java code and saw that bigText is indeed used.

I don’t want to eject from expo because of this :sweat:

#5

@davepack

I found that bigText is being used in the listener. But the same is missing in the Notification Helper which is used for showing local notifications.

Any specific reasons why?

Thanks,

#6

Nope, feel free to send a PR!

1 Like
#7

Jesse,

I’ve made the fix. Shall I go ahead and submit a PR?

Thanks,

1 Like
#8

Merged the PR @leenasn. Thank you!

#9

Great @jesse. Glad I could do this.

1 Like