Open gopalanand333 opened 5 months ago
Hi @gopalanand333 ,
Did you define "notifications" under "Cds.requires" in package.json file ?
Ideally, the structure should be
"cds" : {"requires": {"notifications":{"destination": "SAP_Notifications"}}}
"SAP_Notifications" should be defined as a destination in BTP Cockpit. You can get information about destination from the Site settings of Build Work Zone. Thanks, Anshuman
@anshuman92
https://github.com/cap-js/notifications?tab=readme-ov-file#notification-destination states that the above configuration is added by default.
But in my application, it is not getting added automatically when adding the plugin
@anshuman92 https://github.com/cap-js/notifications?tab=readme-ov-file#notification-destination states that the above configuration is added by default. But in my application, it is not getting added automatically when adding the plugin
@gopalanand333 No, the plugin does not add automatically as mentioned. Therefore, I added manually as a usual practice after setting destinations in BTP cockpit. Another issue I have raised here - https://github.com/cap-js/notifications/issues/44. Kindly see if you come across.
@gopalanand333 No, the plugin does not add automatically as mentioned. Therefore, I added manually as a usual practice after setting destinations in BTP cockpit. Another issue I have raised here - #44. Kindly see if you come across.
Also stumbled on this. Here is a code snippet which I have added to 'server.js':
cds.on("served", async ()=>{
const {deployNotificationTypes} = require("@cap-js/notifications/lib/content-deployment");
})
@gopalanand333 No, the plugin does not add automatically as mentioned. Therefore, I added manually as a usual practice after setting destinations in BTP cockpit. Another issue I have raised here - #44. Kindly see if you come across.
Also stumbled on this. Here is a code snippet which I have added to 'server.js':
cds.on("served", async ()=>{ const {deployNotificationTypes} = require("@cap-js/notifications/lib/content-deployment"); })
Yeah, I have added this too.
Hi, My application is crashing when it is trying to trigger the notification. I am getting the following error:
Here's my MTA