Send Push Notification using

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • Support Channel By Joining Patreon and get Access to Exclusic Content
    / flutterflowvip
    Code - flutterflowvip...
    In this video, we will learn how to send notifications using Supabase and OneSignal with Edge Function on your FlutterFlow app or any app that uses OneSignal SDK.
    In the demo, we have a table called "Notification" where we add a new row with details such as Title, Content, and Big Thumb (image URL). After adding the row, our device instantly receives the notification.
    Similarly, in a FlutterFlow app, we add a new post with a title, description, and image, and again, we receive the notification on our device without any delay. We don't need to do anything from the app; it automatically triggers the notification by adding a new record to the table.
    To set up this functionality in your Supabase project, first, you need to setup the OneSignal SDK in your FlutterFlow app. After that, create a new table called "Notifications" with columns for Title, Content, and Big-Image. All field types should be text.
    Next, we create an Edge Function for triggering the notification. Install the Supabase CLI and initialize a new project. Then create the Edge Function and replace the function code with the provided code in the description. Deploy the function to your Supabase project.
    To trigger the function whenever a new record is added to the Notifications table, create a webhook. Enable webhooks, name your webhook, select the table as "notifications," enable the insert event, and add the authorization header with your Anon Key.
    Now, whenever you add a new row in the Notifications table, a notification will be triggered to your apps automatically. This method eliminates the need to manually add notifications to the OneSignal dashboard.
    In future videos, we will cover how to target specific users for specific events or segments using Edge Function. We are also working on a codeless solution for creating Edge Functions, so stay tuned for that.
    Subscribe to the channel and enable the notification bell icon to stay updated with the latest videos. If you have any questions regarding FlutterFlow, Supabase, or OneSignal, feel free to ask in the comment section.
    Keep building awesome apps!

КОМЕНТАРІ • 112

  • @CelsonAquino
    @CelsonAquino 9 місяців тому +5

    Thank you very much for these instructions! I have a FlutterFlow project where my backend is supabase and I was thinking I would need to integrate with firebase to send push notifications! God bless you!

    • @flutterflowvip
      @flutterflowvip  9 місяців тому +1

      You dont need to setup firebase to the flutterflow project but for setting onesignal you need firebase project

  • @sambrucejoseph
    @sambrucejoseph 7 місяців тому +3

    Thank you so much for this tutorial. I would appreciate a lot if you can make a video like this to target specific user based on specific event like you said in the last part of the video. Really looking forward for that video.

  • @gudupuramesh
    @gudupuramesh Рік тому +4

    Your video Content is very easy to understand and clear. It would be great if you can make a video series for a flutterflow complete app with backend (supabase) 🙏

    • @flutterflowvip
      @flutterflowvip  Рік тому +3

      Thanks for the suggesstion - i will try to make video series on flutterflow with supabase soon.

  • @Nekobala
    @Nekobala 3 місяці тому +2

    Great video! It seems the links you provided in description and comments are broken. I cannot open it.

    • @flutterflowvip
      @flutterflowvip  3 місяці тому +2

      Ohh . Thanks for reporting. I will fix it soon.

  • @rameshrk6907
    @rameshrk6907 11 місяців тому +9

    Can you please upload a video on how to send push notification to specific users on data change in specific rows

    • @MamadBa
      @MamadBa 11 місяців тому +2

      Good idea !

    • @flutterflowvip
      @flutterflowvip  11 місяців тому +2

      Sure

    • @GustaffPain
      @GustaffPain 9 місяців тому

      Hi. Thank you for your video. it helped a lot. I assume in the code you provided above, we just need to change the piece of code below to exclude the "included_segments: ["Total Subscriptions"]" and replace it with something like include_external_user_ids = [record.user_id] where the user_id is then a column in your notifications table?
      const oneSignalBody = {
      app_id: "990edcee-78e1-4017-b154-cae276866efd", // Include your app_id
      included_segments: ["Total Subscriptions"],
      contents: {
      en: content, // Use payload content as notification content
      es: "Spanish Message"
      },

    • @catoshimeowmoto
      @catoshimeowmoto 8 місяців тому +4

      ​@@flutterflowviphey bro please make it as early as possible. Been waiting for 2 months now. 😢 I know a lot of people who want it not just me 😭

    • @flutterflowvip
      @flutterflowvip  8 місяців тому +1

      ok bro ill prioritize it.@@catoshimeowmoto

  • @tasqam
    @tasqam 8 місяців тому +2

    Hello, the video helped me, thank you! When will the video be released where there will be functionality for sending push notifications to a specific user? after a certain action

    • @flutterflowvip
      @flutterflowvip  8 місяців тому +3

      Coming soon!

    • @arniifounder
      @arniifounder 8 місяців тому

      Im looking forward to it too!@@flutterflowvip

    • @KarimCHEMEK
      @KarimCHEMEK Місяць тому

      @@flutterflowvip Hello brother 6 months later and i am still waiting for the video bro !

  • @MamadBa
    @MamadBa 11 місяців тому +4

    Hi ! Thank you for this great video !! Have you plan to release a video on how to send push notification to specific users as you say at the end of the video ?

    • @flutterflowvip
      @flutterflowvip  11 місяців тому +3

      It's in the pipeline I will upload it soon.

    • @MamadBa
      @MamadBa 11 місяців тому

      Great 🚀@@flutterflowvip

    • @mamadouba7328
      @mamadouba7328 10 місяців тому +2

      ⁠@@flutterflowvip Hi ! Is your video still in the pipe? 👀

    • @flutterflowvip
      @flutterflowvip  10 місяців тому +3

      sorry for dealy guys . its in the pipeline . i just want to make sure is production ready secure

    • @mamadouba7328
      @mamadouba7328 10 місяців тому

      @@flutterflowvip no problem ! Thank you again for your work 🙏

  • @canergurelsoy6875
    @canergurelsoy6875 8 місяців тому +2

    very good one thanks,
    But can you guild me throught installing adn using supabse locally in docker?

  • @novouik
    @novouik 10 місяців тому +2

    Wonderful. It helped me.
    What I want is to send notifications to specific users based on their categories. Also, use this, to send notification when user receive message like in WhatsApp.
    How to do this? Need help please...

    • @flutterflowvip
      @flutterflowvip  10 місяців тому +2

      Sending notification to specific users is in video pipeline. I will be uploading in-depth guide soon.

    • @novouik
      @novouik 10 місяців тому +2

      Thank you so much !
      Waiting.....

  • @gino1386
    @gino1386 3 місяці тому +1

    Coooool, thanks a lot. It seems just send a push to receiver who already registered all subscriptions. If i wanna send specific subscriptions or groups, then how to do it?
    Can I get apns, fcm device token from Onesignal? and register subscription using that token??

    • @flutterflowvip
      @flutterflowvip  3 місяці тому

      For that you need to get users device onesignal I'd and and store it somewhere or change users External id with something like userid then u can send notification to specific user

  • @milagendelman
    @milagendelman 6 місяців тому +1

    Does this solution also works for FlutterFlow Apps on iOS/for deployment in AppStore? Are any additional configurations needed? Have you already done the next video how to target a specfic user? Unfortunately I couldn't find it. Thanks a lot for your great job!

    • @flutterflowvip
      @flutterflowvip  6 місяців тому

      The current solution I tested only on Android for iOS there are some additional steps

    • @hakonulven9481
      @hakonulven9481 5 місяців тому

      @@flutterflowvip Can you make video on how this is for IOS too?

    • @ChristophGeiser
      @ChristophGeiser 6 днів тому

      would love to see that as well, as I need Push Not. for iOS as well.

  • @christianely8567
    @christianely8567 5 місяців тому +1

    Hello! Great video! I'm sorry you've stopped posting... I'm not sure if you still check the comments, but I'd like to know if this method can also be used in web apps. I tried another way, but I'm not getting the FCM token for the web.

    • @flutterflowvip
      @flutterflowvip  5 місяців тому +1

      I am not posting new video cause of my job but I will soon start posting.
      and this method will not work on web.
      You have to check the one signal web sdk guide..
      I will try to make video on this when I am available if possible

    • @christianely8567
      @christianely8567 5 місяців тому +1

      @@flutterflowvip At least you're okay :) Thanks for the response, I'll look into it.

  • @Lahazat_Zehnia_
    @Lahazat_Zehnia_ Рік тому +4

    best content on youtube Good Job Bro ❤
    i just want you to make a video about awesome notification inside flutterflow or local-push-notification and another video to run firebase push notification inside Flutterflow free
    and thank you ❤❤

    • @flutterflowvip
      @flutterflowvip  Рік тому

      Thanks for the idea!. Sure . I will make make the video on this topic.

  • @RuhitKhan
    @RuhitKhan 9 місяців тому +2

    please make a video on the Onesignal segment part. I want to make custom segments and add users to those segments. then send notification based on the segments.

    • @flutterflowvip
      @flutterflowvip  9 місяців тому +1

      its in my list i will make video on this soon

    • @RuhitKhan
      @RuhitKhan 9 місяців тому +1

      @@flutterflowvip thank you very much. Your videos are so helpful.

  • @gutocastiglioni
    @gutocastiglioni 8 місяців тому +1

    Let me get it straight, this video has no integration with Flutterflow, right? The FF only activates the Supabase Webhook and then One Signal send the notification to the user?

  • @activehubmolatech1011
    @activehubmolatech1011 2 місяці тому +1

    Hey man thanks for the video but I could not get to continue as the code you provided has expired in notion, it literarily saying I should ask you to update the link, i will appreciate it if you can update it soon 🙏🙏

    • @flutterflowvip
      @flutterflowvip  2 місяці тому

      Thanks for updating me, updated the expired url.

  • @padeepz1496
    @padeepz1496 Рік тому +1

    kindly do a video on integrating selfhost Typesense in flutterflow

    • @flutterflowvip
      @flutterflowvip  Рік тому +1

      Thanks for the suggestion i will make a video on this soon

  • @sbessot
    @sbessot 8 місяців тому +1

    Great video ! How to reset the badge in the flutterflow app after open ?

    • @flutterflowvip
      @flutterflowvip  8 місяців тому

      you can use Apps State on Notification page. and reset when notifications page is opened.

  • @Barsamaha
    @Barsamaha Місяць тому +1

    What initial conditions must be met for a user to receive a push message?

  • @АртемКиреев-р5н
    @АртемКиреев-р5н Рік тому +1

    Hello, can you show how to make push notifications when row is updated?

    • @flutterflowvip
      @flutterflowvip  Рік тому

      Use the same method just enable update on Webhook

  • @syunaokizi
    @syunaokizi Рік тому +2

    thank you!!!
    I would like you to create a video that sends push notifications on iOS using supabase and onesignal.

  • @МаксимАнаньев-е8щ
    @МаксимАнаньев-е8щ 11 місяців тому +1

    You have a very good video clip! But why don't you show how you configured one signal + supabase? 'this point is not clear, I know that one signal requires firebase data, which goes against the topic of the lesson. I followed your advice and in the end I got the error "You have 1 total subscribed user for this app, but none specifically for the Google Android (FCM) platform. You need at least one subscribed user specifically for Google Android (FCM) to continue." On the onesignal connection testing page

    • @flutterflowvip
      @flutterflowvip  11 місяців тому +1

      you have to configure OneSignal SDK in your before proceeding with this instruction. I have already created the video on SDK integration on FlutterFlow app..
      If you still face any issue with the integration please explain your error so I can check .

    • @МаксимАнаньев-е8щ
      @МаксимАнаньев-е8щ 11 місяців тому +1

      please send someone a video where you configure the sdk

    • @flutterflowvip
      @flutterflowvip  11 місяців тому

      The current integration is specifically for FlutterFlow -
      ua-cam.com/video/Vo62xcNNpmA/v-deo.html

  • @kylekhanh7362
    @kylekhanh7362 6 місяців тому +1

    thank you so much, It's simply amazing !

  • @thelonglincoln
    @thelonglincoln 10 місяців тому +1

    Awesome video. Thank you!

  • @OrSn21
    @OrSn21 10 місяців тому +1

    Do I need firebase authenticated users to use onesignal?? Cuz I'm using supabase auth

    • @flutterflowvip
      @flutterflowvip  10 місяців тому +1

      you dont need firebase authentication to use onesignal - but you need firebase service key to use onesignal. because under the onesignal uses firebase to send notifications

  • @welingtonlisboa6633
    @welingtonlisboa6633 5 місяців тому +1

    Thanks for the video! Can you explain how to send to a user and a group of users.

  • @mp44boy74
    @mp44boy74 6 місяців тому +1

    Bro jese login sign page ke bad dating app ka main page open hota he.. Jisme hmko girls ke pic show hote he.. To first jb account bnante time vo Firebase me data send kr diya tha but ab usko show krna he ki vo dusro ko show ho

    • @flutterflowvip
      @flutterflowvip  6 місяців тому

      Homepage pe swipe widget lageke .
      Firebase se dynamic generate karo

  • @MEdel2204
    @MEdel2204 8 місяців тому +1

    in the powershell running this line "npm i supabase --save-dev" gives me an error that my system cant find the name "npm" under windows. has anybody an advise? ( + CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException)

    • @flutterflowvip
      @flutterflowvip  8 місяців тому

      try using npx instead npm

    • @MEdel2204
      @MEdel2204 8 місяців тому +1

      @@flutterflowvip thank you a lot. but same problem. i need to install something i think that is not installed.

    • @flutterflowvip
      @flutterflowvip  8 місяців тому +1

      Install supabase cli in your system

  • @Flutterflow_Addict
    @Flutterflow_Addict 7 місяців тому +1

    I did exactly what you did , but I'm not seeing push notifications on my app

    • @flutterflowvip
      @flutterflowvip  7 місяців тому

      Have you setup in flutterflow?

    • @Flutterflow_Addict
      @Flutterflow_Addict 7 місяців тому +1

      I created the custom action just like you said , got the app id and api key from one signal, is there anything else I'm missing.
      I Deployed the script .

    • @Flutterflow_Addict
      @Flutterflow_Addict 7 місяців тому

      I'm using supabase for users authentication. Is this a problem

    • @flutterflowvip
      @flutterflowvip  7 місяців тому

      have you initiated permission in main.dart?@@Flutterflow_Addict

    • @Flutterflow_Addict
      @Flutterflow_Addict 7 місяців тому

      @@flutterflowvip yes I did.

  • @RahulPradipPatil
    @RahulPradipPatil Рік тому +1

    is there any free alternative to OneSignal or open source to do notification system.

    • @flutterflowvip
      @flutterflowvip  Рік тому

      OneSignal is absolutely free you don't need to pay any money to use it.

    • @RahulPradipPatil
      @RahulPradipPatil Рік тому +1

      @@flutterflowvip Brother they mention pricing on to their website & free plan have lots of limitation.
      please correct me if i am wrong.

    • @flutterflowvip
      @flutterflowvip  Рік тому

      they have unlimited api request for free plan .

    • @RahulPradipPatil
      @RahulPradipPatil Рік тому +1

      @@flutterflowvip ok ! Brother is there any open source alternative

    • @flutterflowvip
      @flutterflowvip  Рік тому

      alternativeto.net/software/gamethrive-push-notifications/?license=free@@RahulPradipPatil

  • @rodrigoalmeida6952
    @rodrigoalmeida6952 2 місяці тому +1

    Do you have upwork account? I want hire you a service

    • @flutterflowvip
      @flutterflowvip  2 місяці тому

      sorry for the delay response.
      I do not work through upwork.
      You can directly contact me here .
      manish@flutterflow.vip
      Thanks

  • @padeepz1496
    @padeepz1496 Рік тому +1

    hi is there any way to send pushnotification (Firebase) to all users in flutterflow via an actions (i dont want to pull userReference since i have more than 50k users )

    • @flutterflowvip
      @flutterflowvip  Рік тому

      in FlutterFlow - there is an option to Send Notification to All you users at once without fetching userRefs-
      have a Look at this -
      zed-x.notion.site/Send-Notification-to-All-users-at-Once-21e9dc07d5d64dcbaa595c94a36713ca?pvs=4

    • @padeepz1496
      @padeepz1496 Рік тому +1

      @@flutterflowvip hi . i'm aware of this option. but i want it to trigger via an action from an app

    • @flutterflowvip
      @flutterflowvip  Рік тому +1

      well there is no action available yet in flutterFlow - But you use Google FCM Api to trigger notifications to all your users at once .@@padeepz1496

    • @flutterflowvip
      @flutterflowvip  Рік тому

      zed-x.notion.site/Google-FCM-_-API-Notification-f436d56f8e9b48aba95b5d0cdb38185c?pvs=4
      its exactly what you need - just enable Cloud Messaging API (Legacy) to get your Server Key

  • @dr.anonymous4867
    @dr.anonymous4867 Рік тому +1

    Sir can you please help me on creating a custom widget for a unique function

  • @DYLANKAVUNDAMA
    @DYLANKAVUNDAMA 8 місяців тому +1

    thank U

  • @SeriousSection
    @SeriousSection Рік тому +1

    Good