empe
empe
NNovu
Created by empe on 1/22/2024 in #💬│support
How to validate the required arguments for a trigger
@CrimsonKobalt wrote: Hi all, when working with the backend API, I've noticed that triggering a workflow requires its name (or is it more correct to say, the name of its trigger?), but the other possible operations require its (mongoDB) id. However as far as I can see, this id is not visible anywhere in the tool. Is the only solution here fetching all workflows and looking for the id manually (at least once, and save it after)? I'd like to use the WorkflowResponse object to validate the required arguments for a trigger.
17 replies
NNovu
Created by empe on 1/7/2024 in #💬│support
False activity feed error when triggering an iOS push notification using FCM as a provider
When initiating a workflow featuring a 'Push channel' step (node) with FCM as the provider for delivering notifications to the subscriber's (end user's) iOS device, the notification is successfully delivered; however, an error occurs in Novu's activity feed.
6 replies
NNovu
Created by empe on 12/21/2023 in #💬│support
Issue with iFrame Notification Center's showUserPreferences Property
No description
2 replies
NNovu
Created by empe on 12/6/2023 in #💬│support
FCM Push provider guide with iOS app
I'm currently working on creating this guide. Here, you can find the current guidelines for this guide: Please note that this guide is a work in progress. We welcome your review and feedback. If you have experience with Firebase Cloud Messaging (FCM), please share your insights and suggestions to help us improve and ensure we cover all necessary aspects. Main Objective Our goal is to create a comprehensive step-by-step guide with a practical example app that demonstrates how to send FCM push notifications using Novu and seamlessly receive and handle these notifications in an iOS application. The example app should encompass the following key features: 1. Sending and Displaying Images: Learn how to send images within notifications and display them in the app. 2. Notification Icons: Understand how to send custom notification icons and display them in the app. 3. Notification Title and Body: Explore how to set the title and body of notifications. 4. Configuring Sound: Discover how to configure notifications with or without sound. 5. Custom Notification Colors: Learn to set custom colors for notifications. 6. Configuring Click Actions (Deep-Linking): Explore the setup of click actions for deep-linking within the app. 7. Notification Priority: Understand how to set notification priority levels. 8. Action Buttons: Implement action buttons within notifications. 9. Handling Different Notification Types: Learn how to handle different data and notification types from both the app and the Novu trigger. 10. Additional FCM APNS Options: Explore additional options supported by FCM's APNS configuration. You can refer to the FCM APNS configuration documentation for more details. Furthermore, we aim to provide well-commented example code to ensure clarity and ease of understanding. Feel free to reference the FCM's official guide for iOS as a valuable resource throughout this process. Your input and suggestions are highly appreciated as we work towards creating a valuable and comprehensive guide for FCM push notifications using Novu in iOS applications. Please review and provide feedback to help us enhance this guide further. CC: @nguyenducmanh8098@frnandu@xorrier@ginger_lemon@puneettiwari61@mauve_123@fisundur@dave93.@the_nexen@balance@serafeimo
1 replies
NNovu
Created by empe on 10/31/2023 in #💬│support
Display the notification feed without the "bell" element.
@thesockguy: "Hey @Emil , I am here to try to figure out who to get the notification-center-component from the web component bundled version to just display all of the notifications (instead of showing the bell that you have to click on to see the notifications)" @Emil: "I think that the best way for it is actually using the "headless notification library". You can learn more about it here" @thesockguy: "Do you have a bundled / USM version of @novu/headless? I am using this in retool & a USM version is required." @Emil: "Can you help me by elaborating a bit more?: @thesockguy: — "Here are the retool docs: https://docs.retool.com/apps/scripting-events/guides/custom-javascript
"CDNJS lists libraries you can load. Retool recommends you load the minified, UMD build, usually named with the format <library>.min.js. Non-minified builds usually require @require or import statements. Some libraries are not compatible with Retool, and you may need to use these in custom components."
"CDNJS lists libraries you can load. Retool recommends you load the minified, UMD build, usually named with the format <library>.min.js. Non-minified builds usually require @require or import statements. Some libraries are not compatible with Retool, and you may need to use these in custom components."
This means I have no easy way of importing the notification section on the right side of this demo https://notification-center-demo.vercel.app/ The best bet for headless is to use this tutorial to make a WebSocket connect https://www.thegoegetter.com/blog/real-time-retool Could you assist me with this?"
7 replies
NNovu
Created by empe on 10/29/2023 in #💬│support
[VOD] Office Hours : Oct 31st, 2023
1 replies
NNovu
Created by empe on 10/4/2023 in #💬│support
Removing all notifications
I have an objective of removing notifications sent to a specific subscriber. I'm currently testing the following method:
headlessService.removeAllNotifications({
listener: (result: UpdateResult<void, unknown, undefined>) => {
console.log(result);
},
onSuccess: () => {
console.log("success");
},
onError: (error: unknown) => {
console.error(error);
},
feedId: "feedOne",
});
headlessService.removeAllNotifications({
listener: (result: UpdateResult<void, unknown, undefined>) => {
console.log(result);
},
onSuccess: () => {
console.log("success");
},
onError: (error: unknown) => {
console.error(error);
},
feedId: "feedOne",
});
However, when I attempt to use this method, I receive an AxiosError with the message 'Request failed with status code 400.' It appears that the notifications I want to remove have _feedId set to null. Can you please provide guidance on how to successfully achieve my goal of removing these notifications?
2 replies
NNovu
Created by empe on 8/24/2023 in #💬│support
Access a variables outside of {{each}} method
I would like to transmit a payload to my layout: { a: 'a', arr: [] }. While iterating through the 'arr' using {{each arr}}, I intend to access the 'a' element. However, the step variables seem to assume that I should have a property on every element of the array. How can I achieve this?
7 replies
NNovu
Created by empe on 8/14/2023 in #💬│support
Preview SMS notification content
Hey Novu Team! Is there a plan to implement a preview option for SMS notification content?
3 replies
NNovu
Created by empe on 8/14/2023 in #💬│support
Where and how can I edit System Variables?
How can I effectively modify and incorporate new system variables, or simply variables, into Novu?
10 replies
NNovu
Created by empe on 7/3/2023 in #💬│support
Notification Center Configuration When Running Novu locally
When running locally, I wish to change the notification center credentials to listen to a specific subscriber for testing purposes. How should I do it?
5 replies
NNovu
Created by empe on 5/18/2023 in #💬│support
Required - Notification Group
What does this mean?
14 replies
NNovu
Created by empe on 5/18/2023 in #💬│support
How to create a notification template for a topic?
Where I set the topic's notification template?
27 replies
NNovu
Created by empe on 5/18/2023 in #💬│support
Having a Bad Request when trying to add subscribers to a topic
async function addSubscriberToTopic(apiKey) {
const novu = new Novu(apiKey);

const topicKey = await askQuestion('Enter the topic key: ');
const subscriberIds = await askQuestion('Enter the subscriber IDs (comma-separated): ');
const subscriberIdArray = subscriberIds.split(',');

try {
// Add the subscribers to the topic
await novu.topics.addSubscribers(topicKey, subscriberIdArray);
console.log('Subscribers added to the topic successfully!');
} catch (error) {
console.error('Failed to add subscribers to the topic:', error);
}
}
async function addSubscriberToTopic(apiKey) {
const novu = new Novu(apiKey);

const topicKey = await askQuestion('Enter the topic key: ');
const subscriberIds = await askQuestion('Enter the subscriber IDs (comma-separated): ');
const subscriberIdArray = subscriberIds.split(',');

try {
// Add the subscribers to the topic
await novu.topics.addSubscribers(topicKey, subscriberIdArray);
console.log('Subscribers added to the topic successfully!');
} catch (error) {
console.error('Failed to add subscribers to the topic:', error);
}
}
5 replies
NNovu
Created by empe on 5/18/2023 in #💬│support
Seeing topics representation on Novu's admin GUI
I think that topics are one of the most essential features and capabilities of Novu, but not having a visual representation within the dashboard makes it not so user-friendly to my opinion
2 replies
NNovu
Created by empe on 5/9/2023 in #💬│support
How to find my feedId?
10 replies
NNovu
Created by empe on 5/9/2023 in #💬│support
Novu dashboard (GUI) notification center modifications
11 replies
NNovu
Created by empe on 5/8/2023 in #💬│support
Headless: fetchNotifications method
20 replies
NNovu
Created by empe on 5/7/2023 in #💬│support
Using the headless notification center library with Ruby on Rails, Django or Laravel
According to the documentation, "users can easily incorporate our notification system into any framework or vanilla JavaScript project," and I just wanted to ensure that it includes non-javascript/typescript frameworks.
13 replies
NNovu
Created by empe on 4/18/2023 in #💬│support
Make a request to the dev.api.novu.co
How can I switch my API call from the production endpoint to the development endpoint to improve the response time?
app.post('/api/novu/event', async (req, res) => {
try {
const novu = new Novu(process.env.NOVU_API_KEY);
novu.trigger('angular-notification-center', {
to: {
subscriberId: process.env.SUBSCRIBER_ID,
},
payload: {
},
});
const data = { message: 'Event triggered successfully' };
res.json(data);
} catch (error) {
console.error(error);
res.status(500).send('Server Error');
}
});
app.post('/api/novu/event', async (req, res) => {
try {
const novu = new Novu(process.env.NOVU_API_KEY);
novu.trigger('angular-notification-center', {
to: {
subscriberId: process.env.SUBSCRIBER_ID,
},
payload: {
},
});
const data = { message: 'Event triggered successfully' };
res.json(data);
} catch (error) {
console.error(error);
res.status(500).send('Server Error');
}
});
19 replies