how to make notification popup in admin as a module. enter image description here

Any help? Thank in advance.

  • Check Magento_AdminNotification module you will get your answer
    – Hiren
    Commented Jan 3, 2020 at 5:02
  • @Hiren I know, but I don't understand all of theme.
    – MichaelHa
    Commented Jan 3, 2020 at 6:43
  • @RkRathod please read carefully, your refer not guide make notification.
    – MichaelHa
    Commented Jan 3, 2020 at 8:06
  • @Pritam Info 24 can you help me?
    – MichaelHa
    Commented Jan 3, 2020 at 9:20

1 Answer 1


Create the below files in your custom module.


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
   <type name="Magento\Framework\Notification\MessageList">
           <argument name="messages" xsi:type="array">
               <item name="Notification" xsi:type="string">Vendor\Notification\Model\Notification</item>


namespace Vendor\Notification\Model;
class Notification implements \Magento\Framework\Notification\MessageInterface
    public function getIdentity()
        // Unique message identity
        return 'identity';
    public function isDisplayed()
        // Return true to show your message, false to hide it
        return true;
    public function getText()
        // Your Custom Message here.
        return "Notification Add Successfully";
    public function getSeverity()
        //Available Message Types
        return self::SEVERITY_CRITICAL;

Hope this will work for you.

  • 1
    are you try this, your code makes system message, not popup message.
    – MichaelHa
    Commented Jan 3, 2020 at 4:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.