Chrome notifications using Javascript within Google Apps Script

I’m trying to use javascript from within a Google Apps Script project in order to display notifications to the user using chrome.notifications

However, this isn’t working. Whenever I query Notification.permission it returns ‘denied’, even if I explicitly ‘allow’ in settings for the page:

let permission = Notification.permission;
alert(permission);

…always returns ‘denied’.

I use HtmlService.createTemplateFromFile to create the HTML pages in my project, so I suspect this issue is happening because Chrome doesn’t allow notifications from within a cross-origin frame.

I was wondering if anyone had come up with a solution or work-around for this?