Notifications/message don't display if status bar is turned off #1891
-
I am using the following call to output messages (taken from frontend-samples-showcase) IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, "Hello")); We are not using status bar in our app so it is turned off using defaultUiConfig parameter of class ... It seems that if status bar is turned off, messages don't show up. If I set the above to hideDefaultStatusBar to 'false', messages start appearing as expected (status bar is also shown which is what we don't want). Can you please guide how we can show our notifications without having to turn on the status bar. Perhaps I can set these listeners myself (pls see below...) In trying to trace this issue, it seems certain listeners are not set if status bar is off. I have tried to capture the call stack below. @bentley/bentleyjs-core/src/BeEvents If status bar is off If status bar is on messages keep stacking up in queue and not displayed Called from: @bentley/bentleyjs-core/src/BeEvents Called from @bentley/ui-framework/messages/MessageManager.ts public static addMessage(message: NotifyMessageDetailsType): void { Called from @bentley/ui-framework/messages/AppNotificationManager.ts public outputMessage(message: NotifyMessageDetails): void { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you add <MessageRenderer /> from "@bentley/ui-framework" to your React component hierarchy, you will see the messages without using the StatusBar. |
Beta Was this translation helpful? Give feedback.
If you add <MessageRenderer /> from "@bentley/ui-framework" to your React component hierarchy, you will see the messages without using the StatusBar.