You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

INotificationContext not showing message

Accepted answer
33
Views
1
Comments
edited Jun 13, 2022 4:13AM in General Technical Discussions 1 comment

Summary:


Content (required):

Hello,

I'm triying to use the INotificationContext for the BUI usage, but the message is not showing

Please see below error and code

Code Snippet (add any code snippets that support your topic, if applicable):

ORACLE_SERVICE_CLOUD.extension_loader.load("CUSTOM_APP_ID", "1").then(function(IExtensionProvider) {

IExtensionProvider.registerUserInterfaceExtension(function(IUserInterfaceContext) {

IUserInterfaceContext.getNotificationContext().then(function(INotificationContext) {

var notificationConfig = INotificationContext.createNotificationConfig();

notificationConfig.setMessage('Notification Text goes here');

notificationConfig.setDuration(10);

INotificationContext.showNotification(notificationConfig);

console.log(notificationConfig);

});

});

});

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!