Resolved: wixCrm.notifications.notify not functioning

@bradosner

Just try the code with the site owner notify part only and see if you still get the same error.

Place following code in Backend/Notifications

import wixCrm from 'wix-crm-backend';

export function notifyOwnerOnDashboard() {
  wixCrm.notifications.notify(
    "Notification body", 
    ["Dashboard"], 
    {
      "title": "Notification Title",
      "actionTitle": "Click this!",
      "actionTarget": {"url": "https://www.wix.com"},
      "recipients": {"role": "Owner"}
    }
  );
}

Go to desire page to insert Front end Code.

import {notifyOwnerOnDashboard} from 'backend/notifications';

$w.onReady(function () {

export function notifyOwner() {
 const title = "I'm a title";
 const action = "This is what I have done";
 const site = "https://www.wix.com"; // use full URL link
 const role = "Owner";    
    notifyOwnerOnDashboard()
}
}