Premetto che di javascript non ci capisco quasi niente.
Il codice preso da una demo funziona tranquillamente se clicco il pulsante id='kt_notify_btn'
Ma io vorre stampare la notifica se settato $_GET['msg'], e casomai togliere il timer id='kt_notify_progress' (non mi serve lo switch)
Demo: https://preview.keenthemes.com/metro...ap-notify.html
codice:
var KTBootstrapNotifyDemo = function () {
    var notify = function () {
        $('#kt_notify_btn').click(function() {
            var content = {};
            content.message = '<?= $_GET["msg"] ?>';
            content.icon = 'icon flaticon-exclamation-2';
            var notify = $.notify(content, {
                type: 'info',
                allow_dismiss: true,
                newest_on_top: true,
                mouse_over:  true,
                showProgressbar:  false,
                spacing: 20,
                timer: 3000,
                placement: {
                    from: 'top',
                    align: 'center'
                },
                offset: {
                    x: 30,
                    y: 30
                },
                delay: 1000,
                z_index: 10000,
                animate: {
                    enter: 'animate__animated animate__SlideInDown',
                    exit: 'animate__animated animate__SlideOutUp'
                }
            });
              if ($('#kt_notify_progress').prop('checked')) {
                setTimeout(function() {
                    notify.update('message', '<strong>Checking</strong> for errors.');
                    notify.update('type', 'success');
                    notify.update('progress', 100);
                }, 4000);
            }
        });
  }
    return {
        init: function() {
            notify();
        }
    };
}();


jQuery(document).ready(function() {
    KTBootstrapNotifyDemo.init();
});