Unity-Technologies / NotificationsSamples

Sample project for Unity Notifications
Other
283 stars 50 forks source link

add multi line notification support #9

Closed YehudaK closed 5 years ago

YehudaK commented 5 years ago

Currently only few words are shown while the rest of the text is hidden. Do you plan to add:

.setStyle(new Notification.BigTextStyle().bigText(longText))

Thanks

mikaelbo commented 5 years ago

Hopefully they can add this in GameNotificationsManager. I would make a pr, but I've modified my manager a lot due to some thing not working properly on iOS.

You can set the style in AndroidGameNotification.cs. On line 78, you can add the following below: internalNotification.Style = NotificationStyle.BigTextStyle;

YehudaK commented 5 years ago

Thanks @mikaelbo, it worked! I had not clue that I can access style property via AndroidNotification object! All they need to do is to add this information to docs. I personally created my own Notification manager to have better control over notifications in my app.