Build a Notification System in Next.js with Knock

  Рет қаралды 4,288

Colby Fayock

Colby Fayock

Күн бұрын

Пікірлер: 33
@colbyfayock
@colbyfayock 2 ай бұрын
Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course
@ammarhalees6370
@ammarhalees6370 4 ай бұрын
Colby still remains one of the most underrated channels in the dev community.
@colbyfayock
@colbyfayock 4 ай бұрын
thank you 🙏
@JamesQQuick
@JamesQQuick 4 ай бұрын
Ah this is exactly what I need for a recent project!
@colbyfayock
@colbyfayock 4 ай бұрын
its so good! would love to hear what you think if you play around with it
@colbyfayock
@colbyfayock 4 ай бұрын
Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news
@okadz7037
@okadz7037 3 ай бұрын
Omg bro u r always saving me, the cloudinary one and now this, keep up ur legendary 👑
@colbyfayock
@colbyfayock 3 ай бұрын
glad i could help! 🙌
@mileslegend
@mileslegend Ай бұрын
well explained...thanks man ..am giving you a like ..and a subscribe ...your amazing
@colbyfayock
@colbyfayock Ай бұрын
appreciate the support 🙏
@cb73
@cb73 4 ай бұрын
There’s a SaaS for every thing a web app needs. It’s like cutting cable and replacing it with 20 streaming services and still think you’re winning.
@colbyfayock
@colbyfayock 4 ай бұрын
It's nice to have that flexibility! Especially with something as complex as these workflows can bd
@dreamsachiever212
@dreamsachiever212 4 ай бұрын
💯
@NphiniT
@NphiniT 3 ай бұрын
In-app notification not working for me. I am using Auth.js (NextAuth v5) and all users have an ID in the database. But when I set the recipient to the ID it still does not work. On the Workflow runs though, it says it is completed. I've been at it for hours. Any help will be greatly appreciated
@colbyfayock
@colbyfayock 2 ай бұрын
did you happen to check the Logs page inside of Knock? not just the Workflow Runs, it may give a bit more information to see if that was triggered
@NphiniT
@NphiniT 2 ай бұрын
@@colbyfayock The logs also show 200 OK response. In my implementation, the 'collection' field is required. So I pass the same value as the 'id'. Do you think this is why I'm having issues? If so, how do I set up collections?
@NphiniT
@NphiniT 2 ай бұрын
@@colbyfayock So I have found the problem. The recipient collection value is prepended to the recipient ID. So when collection is set to 'abc', and the id is 'xyz'. After execution, the id becomes 'abc/xyz'. Then I found that the collection is only required if the email is provided. So I removed the email. This meant that I have to register every user whenever they log in. I think the current version has a few changes that are different from when you made this video.
@colbyfayock
@colbyfayock 2 ай бұрын
@@NphiniT ahhh okay. glad you were able to find and sort it out
@cardiderek
@cardiderek Ай бұрын
why use knock instead of FCM?
@colbyfayock
@colbyfayock Ай бұрын
no familiar with FCM!
@BrianEspinoza
@BrianEspinoza 3 ай бұрын
is anyone else having issues seeing notifications after deploying to Vercel or some hosted environment? this works when I test locally with ngrok but nothing in prod. user is registering fine with Clerk and Knock but no notification ever appears.
@colbyfayock
@colbyfayock 3 ай бұрын
hey did you check the logs inside of Knock to see if the API request is even making it through? Workflows => Choose your Workflow => Logs
@BrianEspinoza
@BrianEspinoza 3 ай бұрын
@@colbyfayock i did! Workflows showed message was making it through but never read. Did some more digging, found I had a conflicting env variable in production. That resolved the issue
@rtorcato
@rtorcato 4 ай бұрын
any idea what library they are using for the workflow branching and drag and drop?
@jeffeverhart
@jeffeverhart 4 ай бұрын
Hey from Knock, it's a combo of libraries: react-flow, dagre for graph modeling, and dnd-kit
@rtorcato
@rtorcato 4 ай бұрын
@@jeffeverhart great thanks. Nice app btw
@abusomwansantos4945
@abusomwansantos4945 2 ай бұрын
can i implement knock notification in my pwa?
@colbyfayock
@colbyfayock 2 ай бұрын
hey i dont see why you couldnt implement but Knock needs the networks to receive notifications. if you're referring to browser push notifications, i dont believe they support that
@kyngcytro
@kyngcytro 2 ай бұрын
Ok is it me or does knock seem close to novu?
@colbyfayock
@colbyfayock Ай бұрын
havent heard of that one!
@deanime-k4i
@deanime-k4i Ай бұрын
novu is an opensource alternative to knock, suprsend and engagespot
@santyas
@santyas 4 ай бұрын
Superb
@colbyfayock
@colbyfayock 4 ай бұрын
thank you!!🙌
MDX in Next.js is Easy Now
24:16
Colby Fayock
Рет қаралды 3,6 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,4 МЛН
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,6 МЛН
怎么能插队呢!#火影忍者 #佐助 #家庭
00:12
火影忍者一家
Рет қаралды 24 МЛН
Generate a PDF in React
23:38
Colby Fayock
Рет қаралды 17 М.
This Fixes CORS
13:02
Colby Fayock
Рет қаралды 4,2 М.
Design A Scalable Notification System | System Design
28:23
Code with Irtiza
Рет қаралды 41 М.
Favicons the Right Way
18:07
Colby Fayock
Рет қаралды 10 М.
Styling active links in next.js is tricker than you think
10:02
Colby Fayock
Рет қаралды 3,5 М.
Real time Notification System: WebSocket | Spring Boot | Angular
1:22:15
How to Check if a User Exists Among Billions! - 4 MUST Know Strategies
12:44
Building a Mobile App in 2024: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 66 М.