Learn to Send Expo Push Notifications From A Server

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ธ.ค. 2024

ความคิดเห็น • 39

  • @DanRNLab
    @DanRNLab  ปีที่แล้ว

    Hi guys, some have had some trouble running iOS push notifications in production. If this happens to you there are two resources available to get help:
    1) The Expo troubleshooting documentation
    docs.expo.dev/push-notifications/faq/
    2) If you can’t get help there you can go to the Expo discord
    discord.com/invite/expo

  • @klirmio21
    @klirmio21 ปีที่แล้ว +4

    I am freaking impressed why there is little to no documentation / tutorials on how to set up push notifications in React native Expo?
    Even in the official documentation!
    Sorry, not everybody is a middle - senior, beginners need to know it too!
    For that, thank you Dan for this wonderful tutorial! You're really helping us junior bros...

  • @AndreyEscobar
    @AndreyEscobar หลายเดือนก่อน

    Hello @DanRNLab!!
    Why in the minute 5:25 you write a line with "app.listen" on the index.ts and in the minute 5:40 you open the index.ts and there isn't the line "app.listen"?
    Is there two files index.ts? What is the difference between both?

    • @DanRNLab
      @DanRNLab  หลายเดือนก่อน

      I think I made a mistake and put it there too early in the video. You can have it there as soon as you have an endpoint though. It won’t hurt anything.

  • @AndreyEscobar
    @AndreyEscobar หลายเดือนก่อน

    Hi @DanRNLab,
    What example of personal “address” can i use?

  • @ИщенкоАндрей-и9й
    @ИщенкоАндрей-и9й 2 หลายเดือนก่อน

    Awesome, thanks for the tutorial! I have a chat application. When I read a message on one device, the push notification should disappear from the notification list on all other devices. Can you tell me how to implement removing notifications in the background?

  • @brandonbailey8323
    @brandonbailey8323 10 หลายเดือนก่อน +1

    any thoughts on the deprecation of expo push notifications? how would we migrate to the latest recommended approach?

    • @DanRNLab
      @DanRNLab  8 หลายเดือนก่อน

      Not sure if you are still interested but I did a video on it
      th-cam.com/video/V-hois8dgM4/w-d-xo.html

    • @brandonbailey8323
      @brandonbailey8323 8 หลายเดือนก่อน

      @@DanRNLabamazing man thank you so much!

  • @AndreyEscobar
    @AndreyEscobar หลายเดือนก่อน

    I think you may forgot this line in the index.tsx....
    const { Expo } = require('expo-server-sdk');

    • @AndreyEscobar
      @AndreyEscobar หลายเดือนก่อน

      or other option...
      import { Expo } from 'expo-server-sdk';

  • @viniwrldd
    @viniwrldd ปีที่แล้ว

    will this work when I build my app to be released?

  • @nro337
    @nro337 ปีที่แล้ว

    Awesome video, really excited for this one!

    • @DanRNLab
      @DanRNLab  ปีที่แล้ว

      Happy to help 👍!!!

  • @wolfpackent.4473
    @wolfpackent.4473 ปีที่แล้ว

    Great video man. Was wondering this should work on NestJs as well right?

    • @DanRNLab
      @DanRNLab  ปีที่แล้ว +1

      I think as long as you are using a JS server it will work fine

    • @santd3400
      @santd3400 ปีที่แล้ว

      @@DanRNLab HOw about C# bro?

  • @dananjayachathuranga7113
    @dananjayachathuranga7113 ปีที่แล้ว +1

    thank u bro.very helpful for me

  • @abdulrahmanhussamaldin6523
    @abdulrahmanhussamaldin6523 3 หลายเดือนก่อน

    My Main Question Is There Any Limit For This Method I Mean Limit On Sending Notification ??

  • @quyennguyen-xg4jg
    @quyennguyen-xg4jg ปีที่แล้ว

    Good. Can the product environment run?

    • @DanRNLab
      @DanRNLab  ปีที่แล้ว

      It should work, if you have issues on iOS here are some places you can go to get help
      1) The Expo troubleshooting documentation
      docs.expo.dev/push-notifications/faq/#fetching-a-push-token-takes-a-long-time-on-ios
      2) If you can’t get help there you can go to the Expo discord
      discord.com/invite/expo

  • @mth6311
    @mth6311 ปีที่แล้ว

    This will also work with a postgres db?
    Thanks for the video, helped me massively

    • @DanRNLab
      @DanRNLab  ปีที่แล้ว

      I think so the database shouldn’t matter

    • @mth6311
      @mth6311 ปีที่แล้ว

      Thanks Dan, I'm just confused with the server side of things, I'm confused why there was two files and why it couldn't all go into the same file. I've got a lot of learning to do this is all new to me 😅

    • @DanRNLab
      @DanRNLab  ปีที่แล้ว

      They _could_ be in the same file but it’s better for code organization to separate the Firebase calls from the endpoints

    • @mth6311
      @mth6311 ปีที่แล้ว

      ​@@DanRNLabperfect, makes sense.
      Keep up the good work!

    • @mth6311
      @mth6311 ปีที่แล้ว

      Hey Dan, sorry to bother you. In my server, I have a function in my dbService file which retrieves an "id" this id is then passed to another function in the same file, which queries my database for ALL relevant expo push tokens. How do I then pass these tokens to my main server file. The array of tokens is logging on my dbService side file, but no errors or tokens are logging on my main file.
      I can't figure how to return the tokens to an endpoint on my main server file, or is this not possible?
      Thanks

  • @santd3400
    @santd3400 ปีที่แล้ว

    You're an angel :))) THanks so much!

  • @santd3400
    @santd3400 ปีที่แล้ว

    How about C# backend. Is it work

    • @DanRNLab
      @DanRNLab  ปีที่แล้ว

      There doesn’t seem to be a C# SDK
      docs.expo.dev/push-notifications/sending-notifications/#send-push-notifications-using-a-server

    • @santd3400
      @santd3400 ปีที่แล้ว

      @@DanRNLab Thanks bro. I understand, it's donet sdk

  • @shaimaarashed8573
    @shaimaarashed8573 ปีที่แล้ว

    How without using firebase?

  • @kwesikayofficial3078
    @kwesikayofficial3078 ปีที่แล้ว

    Very great video

    • @DanRNLab
      @DanRNLab  ปีที่แล้ว

      Thanks! Happy to help 🙂

  • @abineza9216
    @abineza9216 7 หลายเดือนก่อน

    please complete code

    • @DanRNLab
      @DanRNLab  7 หลายเดือนก่อน

      Hey, the complete code is in the GitHub link in the video description