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
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...
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?
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.
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?
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
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 😅
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
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
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...
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?
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.
Hi @DanRNLab,
What example of personal “address” can i use?
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?
any thoughts on the deprecation of expo push notifications? how would we migrate to the latest recommended approach?
Not sure if you are still interested but I did a video on it
th-cam.com/video/V-hois8dgM4/w-d-xo.html
@@DanRNLabamazing man thank you so much!
I think you may forgot this line in the index.tsx....
const { Expo } = require('expo-server-sdk');
or other option...
import { Expo } from 'expo-server-sdk';
will this work when I build my app to be released?
Awesome video, really excited for this one!
Happy to help 👍!!!
Great video man. Was wondering this should work on NestJs as well right?
I think as long as you are using a JS server it will work fine
@@DanRNLab HOw about C# bro?
thank u bro.very helpful for me
My Main Question Is There Any Limit For This Method I Mean Limit On Sending Notification ??
Good. Can the product environment run?
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
This will also work with a postgres db?
Thanks for the video, helped me massively
I think so the database shouldn’t matter
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 😅
They _could_ be in the same file but it’s better for code organization to separate the Firebase calls from the endpoints
@@DanRNLabperfect, makes sense.
Keep up the good work!
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
You're an angel :))) THanks so much!
How about C# backend. Is it work
There doesn’t seem to be a C# SDK
docs.expo.dev/push-notifications/sending-notifications/#send-push-notifications-using-a-server
@@DanRNLab Thanks bro. I understand, it's donet sdk
How without using firebase?
Very great video
Thanks! Happy to help 🙂
please complete code
Hey, the complete code is in the GitHub link in the video description