Best push notification on react native with firebase tutuorial I have seen. The tutorial is top notch. Even after two years it has helped me massively to understand push notiification. He absolutely covered every scope.
@k.ganesan15952 жыл бұрын
Thanks for sharing this video and detailed explain for Push notification.. Great Job brother...👌
@vishnups54352 жыл бұрын
will I be able to schedule a notification from remote so that user can get the notification everyday on a perticular time?
@justcodejs2 жыл бұрын
You can do it via Firebase Console or implement it as a service in your oen server.
@Vivek-pandey Жыл бұрын
i love u sir 100000 times u helped him as i want
@flaviopitica3 жыл бұрын
saved my ass at work. Great job wish you the best
@sherifsamir68882 жыл бұрын
Thank you so much for explaining this in a simple way
@sufiyanhabib44312 жыл бұрын
Great tutorial. Worked for me. Thanks a lot
@justcodejs2 жыл бұрын
Welcome ☺️
@jeremybradshaw80902 жыл бұрын
Useful tutorial thanks
@DaveTradeFx_013 жыл бұрын
Thanks for your tutorial. It great
@juanmartinezaviles25273 жыл бұрын
Very well explained. Thank you for this tutorial!
@justcodejs3 жыл бұрын
Thanks for your support!
@markoco30683 жыл бұрын
Very informative and detailed. Thank you for this tutorial.
@ivansamoiliuk54512 жыл бұрын
Very big thank you!
@thiagoferraz53623 жыл бұрын
Thanks for this tutorial, it helped a lot!
@davitgigauri60532 жыл бұрын
thank you very much. With me everything works on both platforms though it does not work on quit state Android
@vanns35923 жыл бұрын
Really good explanation.. 👍👍
@justcodejs3 жыл бұрын
Thanks for your support!
@vanns35923 жыл бұрын
I followed all the instructions but I am getting Error Firebase/Unregistered when I call getToken() method. I verify APN, bundleId is same as firebase app name, and firebase automatically created entitlement for apn..
@devina19573 жыл бұрын
You saved my day, thank you so much
@justcodejs3 жыл бұрын
You are welcome 😁
@trangminh87352 жыл бұрын
Do you know how to fix the problem that the device receive the fcm too long (after 2 minutes sending from firebase)
@vigneshramasundaram42493 жыл бұрын
Thank you so much for this tutorial , but i have one doubt regarding how to update badge count in app icon in both background and foreground
@justcodejs3 жыл бұрын
You can specify the badge count in the message payload but it is tricky.
@oberdansantos-dev7163 жыл бұрын
Hi! Congrats for the video! I've a question... You're using Admin SDK for send notifications. Can I use my backend / API to do this in React Native?
@justcodejs3 жыл бұрын
Yes but you need to follow the firebase rest api interface for push notification. However, I think that using firebase admin sdk is much more easier. The firebase admin sdk also available in different programming language.
@sureshpatidar40004 жыл бұрын
Very nicely explain. I have one question: How Notification Badge count updated when iOS App running in backgorund & froeground mode.
@justcodejs4 жыл бұрын
In V5 of @react-native-firebase/messaging you can set the bade using the setBadge method, however, in V6 this method is deprecated and it is now supported in Notifee module which is a paid version of library. notifee.app/react-native/docs/ios/badges#notifee You also can set the badge number in the message payload when you send the notification to the device.
@sureshpatidar40004 жыл бұрын
@@justcodejs Thanks. We don't want to use paid service. We want to update badge count with iOS app icon on the home screen when app in kill, background & foreground mode. We are sending badge number value as 1 in the message payload when sending the notification to the device. But badge count not updated on device with app icon on home screen . Please help us to achieve it.
@justcodejs4 жыл бұрын
For quick solution, your app can trigger your server to send a "data" only notification to the device to set the badge number in the payload when the user open the notification via the app.
@sureshpatidar40004 жыл бұрын
@@justcodejs We don't want to handle it from server. Can we manage in APP using local storage or any other way?
@justcodejs4 жыл бұрын
Then you might need to use other notifications npm module that provide the setBadge function.
@oberdansantos-dev7163 жыл бұрын
Hello, again! :) By Android side, how can I add badges to the application icon ?
@providence19993 жыл бұрын
Hi, Great job! Clearly explain this complicated topic. Can you provide the code snippet to save the token to the FCM server? This is a real world usage. instead of just console.log save the device token to the FCM server for sending future notification. Thanks!
@BinhTran-me3hk3 жыл бұрын
can I use firebase to push notifications in China? thanks for your answer
@justcodejs3 жыл бұрын
Sorry I am not from China so can't answer you 😅
@codeteztechnologies76293 жыл бұрын
Custom push notification sounds not working newer android 8. Please helpme
@justcodejs3 жыл бұрын
For Android 8 and above you need to create the channel in order to use custom sound. developer.android.com/training/notify-user/channels#java
@4rled3 жыл бұрын
This is gold
@ralphlevita54013 жыл бұрын
Hello! is it possible to create a custom sound for the notification? Thank you and more prosper to your channel!
@justcodejs3 жыл бұрын
You should able to do it by specify the sound file in the message payload. For Android, you also need to create a message channel. I have yet to test it. 😅
@Iyiola3 жыл бұрын
Hi, you said push doesn't work on the simulator, but you're using it on the simulator, I am confused
@justcodejs3 жыл бұрын
Sorry for the late reply. I didn't use the simulator. I am using a screen casting app to cast my mobile screen to my computer screen. 😊
@Iyiola3 жыл бұрын
@@justcodejs You responded at the right time lol, been working on this push notification and also following this video for about 7 days now and TODAY 2 hours ago, I have fully implemented push notifications… THANK YOU!!
@justcodejs3 жыл бұрын
Welcome 😊
@helionyxcollective2 жыл бұрын
I am getting the error: messaging.getToken(): NativeFirebaseError: [messaging/unknown] The operation couldn’t be completed. Too many server requests. at FirebaseMessagingModule.getToken FYI: 1. I am not using Redux and I will not be using it. 2. My App.js is setup with functional components, not class components. Any help would be greatly appreciated.
@LarsRyeJeppesen2 жыл бұрын
Why is this React specific?
@justcodejs2 жыл бұрын
because this tutorial is for React Native 🤭
@shubhamjain26163 жыл бұрын
I am not getting the Push Notification Capability option in the Capabilities list. Please help...
@hoanganhnguyen80503 жыл бұрын
check again doc
@shubhamjain26163 жыл бұрын
@@hoanganhnguyen8050 I found out why, because I don't have a paid developer account.
@hoanganhnguyen80503 жыл бұрын
how to custom sound using react native firebase
@justcodejs3 жыл бұрын
You can specify the sound file in the message payload but you might need to create a custom channel for Android app. I have not test that yet so can't give you the exact steps.
@sadiawaleem97963 жыл бұрын
Receiving the error "No firebase app ['DEFAULT'] has been created". I am just running the app not up the admin"
@justcodejs3 жыл бұрын
You need to setuo the firebase app via the firebase console. Please refer to the project github page readme file.
@sadiawaleem97963 жыл бұрын
@@justcodejs Thanks its working now :)
@srikanththotashreek3 жыл бұрын
I'm facing FIS_AUTH_ERROR while trying to getToken. Please help me
@justcodejs3 жыл бұрын
Make sure you had place the correct Google Service file in the respective folder. Android: [proj root]/android/app/google-services.json iOS: [proj root]/ios/GoogleService-Info.plist after you pace the files in the respective folder, make sure you recompile the app in order for it to take effect.
@RavindraKumar-mn4jk4 жыл бұрын
Not working in iOS
@justcodejs4 жыл бұрын
Did you run the app in the actual iOS device? Push notification only work on actual device.