Send PUSH Notifications to Flutter Apps With Supabase Edge Functions & FCM

  Рет қаралды 15,565

Supabase

Supabase

Күн бұрын

Пікірлер: 66
@roninspect4357
@roninspect4357 8 ай бұрын
I was searching it today, Thanks a lot!!!
@domenicochiaradonna8238
@domenicochiaradonna8238 8 ай бұрын
Me too😅
@dshukertjr
@dshukertjr 8 ай бұрын
Let us know in the comments what other Flutter content you would like to see!
@awlad
@awlad 8 ай бұрын
Great tutorial, I'm going to use this to notify users for new chat message. My question is, what's the best way to prevent notifications when both users chat screen are on foreground?. I can store both user ids in a table and check or is there much better way of doing this using trigger/edge function? Thank you.
@Supabase
@Supabase 8 ай бұрын
Thanks! Glad you liked the tutorial! You can use the setForegroundNotificationPresentationOptions option on your Flutter app. Using that setting, you can control whether to show or not show the notification when the app is in the foreground!
@awlad
@awlad 8 ай бұрын
@@Supabase Thank you 🙏
@aniketkhote9
@aniketkhote9 8 ай бұрын
What's the best way to use transactions in supabase flutter
@dshukertjr
@dshukertjr 8 ай бұрын
@@aniketkhote9 You would want to create a database function to perform transaction in Supabase!
@hololog82
@hololog82 8 ай бұрын
This content has been very helpful. However, I switched from Firebase to Supabase due to the simplicity of Supabase. I don't find going back to Firebase appealing. I hope that someday Supabase alone will be sufficient for my needs
@dshukertjr
@dshukertjr 8 ай бұрын
That would be certainly a dream come true 🙌 We sincerely hope that we can bring that day!
@rikyriky966
@rikyriky966 8 ай бұрын
The problem is that for notifications, it is mandatory. The Android operating system is a product of Google.
@ishaqsaeed
@ishaqsaeed 8 ай бұрын
The tutorial i was waiting for thank you.
@allanandliftedhands2669
@allanandliftedhands2669 8 ай бұрын
Hey thanks for the awesome tutorial will this be any different if instead of flutter we are using android studio
@dshukertjr
@dshukertjr 8 ай бұрын
The server-side code should actually be the same as long you are using FCM to send push notifications, so you could use the same code for any kind of iOS, Android, or web development!
@geraldakorli
@geraldakorli 24 күн бұрын
Could you show an example for web push notifications too?
@wesleybarnes5376
@wesleybarnes5376 2 ай бұрын
Works great, Supa!
@flutterexplainedofficial
@flutterexplainedofficial 7 ай бұрын
Such an amazing video 🤩
@borknagarchile
@borknagarchile 5 ай бұрын
Excellent video! got it working except the jwt but it's great anyway! thanks ;)
@JONATHANFARRELEMANUEL
@JONATHANFARRELEMANUEL 8 ай бұрын
Could you please make more content about flutter with supabase?
@Supabase
@Supabase 8 ай бұрын
Thanks for the request! Will do!
@JONATHANFARRELEMANUEL
@JONATHANFARRELEMANUEL 8 ай бұрын
@@Supabase 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@geraldakorli
@geraldakorli 24 күн бұрын
Does this work if I publish the app?
@skypuff
@skypuff 8 ай бұрын
Amazing and quite informative. Thank you 🙏🔥.
@rtorcato
@rtorcato 8 ай бұрын
when will notifications be a feature in supabase. I really don't want to load firebase at all.
@dshukertjr
@dshukertjr 8 ай бұрын
Supabase providing push notification service would certainly be a dream come true, but as explained in the video, currently FCM is a requirement for sending notifications to Android, so there is no escaping Firebase at least for Android apps.
@hololog82
@hololog82 8 ай бұрын
Hello. I found an error in the Supabase documentation. The part "payload.record.profile_id" should be changed to "payload.record.user_id." I hope this small contribution is helpful for the excellent Supabase :)
@dshukertjr
@dshukertjr 7 ай бұрын
Thanks for letting us know, and sorry it took so long to come back to you. We will fix it soon!
@joshredgrift5133
@joshredgrift5133 3 ай бұрын
Does this mean notifications are set up for android as well? Or is this just an ios tutorial?
@bharathprakash
@bharathprakash 6 ай бұрын
Can You please upload tutorial on FCM with Android Kotlin.
@Supabase
@Supabase 6 ай бұрын
Thanks for the request! Will add it to the list!
@RazeProgrammsAS
@RazeProgrammsAS 8 ай бұрын
Is the video available on the website to read through?
@dshukertjr
@dshukertjr 8 ай бұрын
I couldn't make it in time, but coming up! Will share it here once it's ready.
@RazeProgrammsAS
@RazeProgrammsAS 8 ай бұрын
@@dshukertjr very nice, thanks!
@Supabase
@Supabase 8 ай бұрын
Apologies for the delay. Here is a written tutorial covering how to sent FCM from using Supabase. supabase.com/docs/guides/functions/examples/push-notifications?platform=fcm
@RazeProgrammsAS
@RazeProgrammsAS 8 ай бұрын
very nice, thanks! @@Supabase
@flaviobarros8305
@flaviobarros8305 8 ай бұрын
Been playing around with this and even learned some TS ......Can you make a tutorial on how to list a Value change on a specific column or row.....ex: Order status value changed on the database.....the way it is now...anything that changes triggers a notification but most cases you would like to send specific notification on specific instances. (FOR FLUTTER)......
@dshukertjr
@dshukertjr 7 ай бұрын
So you want to send push notifications to your users only when certain conditions are met, correct? You could have all the logic to check if the condition is met within your edge functions, and make it so that the notifications are sent only when the condition is met by using a simple if statement!
@flaviobarros8305
@flaviobarros8305 7 ай бұрын
Hi, Pretty much ...picture this "Trigger a notification when there is a value change on a specic column of current user row"........A good reference would be "Order status from ordered to Preparing to Ready to shipped" for every status change the user is notified of the progress so he can check@@dshukertjr
@axelnuno6673
@axelnuno6673 2 ай бұрын
Would it be a problem if a user could have multiple tokens to be able to manage multiple devices per user?
@Supabase
@Supabase 2 ай бұрын
No, not at all! You would just create a `tokens` table that is associated to the users table in a one-to-many relationship!
@axelnuno6673
@axelnuno6673 2 ай бұрын
@@Supabaseexcellent, thank you!!
@juninhobacker
@juninhobacker 8 ай бұрын
How do I automate a function to run every day? For example, I want every day at a certain time, each user to receive N notifications about their reminders. If a user has 5 reminders on the 10th, they will receive 5 notifications that day.
@Supabase
@Supabase 7 ай бұрын
You could combine the edge functions with pg_cron to do that! supabase.com/docs/guides/database/extensions/pg_cron
@algorithmo134
@algorithmo134 13 күн бұрын
is the code available?
@MarcoPauloBelen
@MarcoPauloBelen 2 ай бұрын
i hope there is an android version tutorial for this
@Supabase
@Supabase 2 ай бұрын
The Edge function setup would be the same for all platforms. You just have to add FCM to your respective platform!
@sambrucejoseph
@sambrucejoseph 6 ай бұрын
Please add chapters to this video so that it is easier to refer. Thanks.
@Supabase
@Supabase 6 ай бұрын
Done 🙌
@sambrucejoseph
@sambrucejoseph 6 ай бұрын
@@SupabaseDamn, that was fast. Thanks 😁
@Monawwar
@Monawwar 8 ай бұрын
I am getting Error: Not implemented: crypto.Sign at notImplemented when running the same
@Supabase
@Supabase 8 ай бұрын
Could you confirm that you are using the latest version of Supabase CLI?
@powertipsweb
@powertipsweb 8 ай бұрын
❤❤❤🎉💪
@novouik
@novouik 8 ай бұрын
Wonderfull ! Thanks @dshukertjr How can push notifications just for specific users depends on their category ? Users with the same category than the post, will receive the notification when post added.
@Supabase
@Supabase 8 ай бұрын
You could use the topic feature of FCM to send push notifications to users with certain categories! firebase.google.com/docs/cloud-messaging/flutter/topic-messaging
@jtpulford2716
@jtpulford2716 8 ай бұрын
link to source to scan though would be nice. thx
@Supabase
@Supabase 8 ай бұрын
Apologies for the delay. Here is a written tutorial covering how to sent FCM from using Supabase. supabase.com/docs/guides/functions/examples/push-notifications?platform=fcm
@omaaar_cito
@omaaar_cito 8 ай бұрын
algo asi para React Native?
@dshukertjr
@dshukertjr 8 ай бұрын
Would this be what you are looking for? kzbin.info/www/bejne/roq1k4x9bJyAldE
@dshukertjr
@dshukertjr 8 ай бұрын
Here is a React Native version of this video! kzbin.info/www/bejne/roq1k4x9bJyAldE
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 126 МЛН
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 13 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 205 МЛН
Flutter Database & User Authentication Quickstart
18:48
Supabase
Рет қаралды 28 М.
Firebase vs Supabase - I Built The Same App With Both
6:21
Your Average Tech Bro
Рет қаралды 114 М.
NixOS Setup Guide - Configuration / Home-Manager / Flakes
3:01:39
Matthias Benaets
Рет қаралды 186 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 298 М.
8 things you should NEVER do in a Database!
22:56
Supabase
Рет қаралды 11 М.
10 new things you NEED to try!
4:31
Supabase
Рет қаралды 6 М.
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 126 МЛН