androidnotificationsphonegap-cli

Android Notification.BigTextStyle behavior


I have observed the following behavior when I create a notification with

Notification.setContextText("Teaser text.  Read more...");
Notification.setStyle(new Notification.BigTextStyle().bigText("full text ..."));

Is this the expected behavior? Can it somehow be modified so as to always - i.e. when the notification is not at the top of the list - show the big text - or get ContentText to wrap?


Solution

  • What you are seeing is correct. Only the topmost notification is expanded by default, however the user can always expand any notification (through a two finger swipe down or one finger hold and swipe down). There's no way to programmatically always make your notification expanded or programmatically expand it.