The button was made by myself. If click the button action is taken to alert the action center but it is unable to display the message in the action centre, However, it won't appear until I refresh the page.
If an action is taken, the message will appear in the action centre automatically.
Also, I write the code below that to show the message in action centre.(button clicked method)
-------------------------------------------------------------------------------------------------------------
ttsbegin;
SystemNotificationDataContract notification = new SystemNotificationDataContract();
notification.Users().value(1, userGroupList.userId);
notification.Title("Bom Activate");
notification.RuleId('Please Activate the BOM');
notification.Message(strFmt("BOM : Kindly Activate BOM ID %1",BOMTable.BOMId));
notification.ExpirationDateTime(DateTimeUtil::addHours(DateTimeUtil::utcNow(), 48));
SystemNotificationsManager::AddSystemNotification(notification);
ttscommit;
info("Notification sent");
-------------------------------------------------------------------------------------------------------------
I click the verify button, info is working properly but

The notice is displayed in the action centre when the page has been refreshed. I don't refresh the page, yet the message appears automatically in the action centre when a button(verify) is clicked.

Thanks in advance,