Тёмный

React Native Tutorial #28 - Local & Scheduled Push Notification 

Programming with Mash
Подписаться 22 тыс.
Просмотров 56 тыс.
50% 1

🔥 Get a discount on 'The Complete React Native Course 2023: from Zero to Hero' on Udemy by using the promo code D782E3. As the instructor, I'll be there to answer any technical questions you may have. Plus, you'll get access to more exams and coding exercises, updated content, and no background music or ads. After completing the course, you can get a valid certificate on Udemy to showcase your skills. Click the link below to enroll now with the discount.
www.udemy.com/course/the-comp...
--------------------------------------------------------------------------------
🌟 In this session we will get acquainted with the Push Notification locally and on schedule.
--------------------------------------------------------------------------------
🔥 The Complete React Native Course:
• The Complete React Nat...
💻 Project Source Code in GitHub:
github.com/mahdi-sharifimehr/...
🔗 React Native Push Notification Module:
github.com/zo0r/react-native-...
--------------------------------------------------------------------------------
😍 Subscribe my channel for more React Native Tutorials:
ru-vid.com...
💝 Join my channel to get access to perks:
/ @mashschool
--------------------------------------------------------------------------------
⏱️ Timestamps:
React Native Tutorial #28 - Local & Scheduled Push Notification
00:00 Intro
00:56 Install react-native-push-notification module
01:45 Setup Android platform to use push notification
04:42 Configuration of push notification
06:13 Create a channel for notification
08:05 Local notification
12:22 Cancel notification
13:01 Local notification schedule
--------------------------------------------------------------------------------
#ProgrammingWithMash #ReactNative #PushNotification

Опубликовано:

 

23 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 93   
@mashschool
@mashschool 3 года назад
If you have any questions about this or request tutorials in this style, be sure to leave a comment below, and thank you for liking the video. 😉
@abhisheksuryawanshi9102
@abhisheksuryawanshi9102 2 года назад
I getting this error: make sure to call firebaseapp.initializeapp(context) first Im only using local notification , still getting this errror Kindly help.
@user-uy3xy1nn4n
@user-uy3xy1nn4n Год назад
I getting this error: make sure to call firebaseapp.initializeapp(context) first Im only using local notification , still getting this errror how to resolve this issue?
@saim4556
@saim4556 5 месяцев назад
app icon not showing in notification how can i fix that?
@plujudramunqk
@plujudramunqk Год назад
I keep coming back to this tutorial for help. Thank you for the content! I hope the channel grows!
@royalgm9993
@royalgm9993 3 года назад
Very simple way to teach. Thanks for making this so simple. Awesome tutorial. 👍
@Hyp3rX360
@Hyp3rX360 Год назад
Awesome, exactly what I was looking for!!!
@wakenyaOfficial
@wakenyaOfficial Год назад
For those getting android manifest merger error just add android:exported="true" as below
@miguelachojc
@miguelachojc Год назад
You are a hero!
@astronautpolar596
@astronautpolar596 Год назад
Thanks!! it help a lot!
@erick9158
@erick9158 2 года назад
Thank you very much for the knowledge you provide, I hope you are always healthy and successful in the future
@mirzaarslan5225
@mirzaarslan5225 Год назад
Thank you so much. You explain everything is very simple way
@mahmudulhasankhosru7092
@mahmudulhasankhosru7092 2 года назад
Thank you so much for this tutorial. It's really helpful.
@devsamad2353
@devsamad2353 2 года назад
thank you so much for this Video, you saved my day.
@pranshupatidar4683
@pranshupatidar4683 3 года назад
Very Very helpful. The way you show each steps is so smoothly executed. Keep up the work.
@mashschool
@mashschool 3 года назад
Glad it was helpful!
@leongvincent9294
@leongvincent9294 3 года назад
Awesome video. I have learned a lot and you made react-native so easy. Thank you
@mashschool
@mashschool 3 года назад
Happy to hear that!
@hardikdesai7693
@hardikdesai7693 3 года назад
Nice video :) Thanks ✌️
@chandraroy2481
@chandraroy2481 2 года назад
Amazing!
@herisusanto2654
@herisusanto2654 3 года назад
Thank you sir... Keep up the good work...
@muhammadhamzaqadri1548
@muhammadhamzaqadri1548 2 года назад
Awesome tutorial, thanks alot for such a good tutorial.
@mashschool
@mashschool 2 года назад
Glad you liked it
@shekhargupta5307
@shekhargupta5307 2 года назад
this is awesome
@torrante
@torrante 3 года назад
Excellent tutorial, and excellent & relaxing backround music! Thank you!
@mashschool
@mashschool 3 года назад
Glad you liked it!
@abdulbasir8740
@abdulbasir8740 3 года назад
Thank you brother, awesome one
@mashschool
@mashschool 3 года назад
My pleasure
@emilienjerome2243
@emilienjerome2243 Год назад
Cool and helpful video. Is there a way to (push notification at any given specific time everyday) even if the user doesn't open it at all during the day?
@LoveAllSong
@LoveAllSong 2 года назад
How can we make this " we would like to push local schedule notification and user set by themself. Example they want to alert notification every morning at 8:00AM and one more they would be can set the start day and end day to alert notification."
@laviederodolfo
@laviederodolfo 2 года назад
great
@80Vikram
@80Vikram 2 года назад
Thanks for this tutorial but I didn't get which app uses local notification, isn't all the apps only use remote notifications ? Please clarify use cases where local notifications is used and any popular app using this technique
@brandon400
@brandon400 10 месяцев назад
i dont have android folder. do u have to create manually or with a command?
@aliabdorrahimi7828
@aliabdorrahimi7828 3 года назад
good
@karventhanvlogs4901
@karventhanvlogs4901 11 месяцев назад
Getting scheduled notification every time when close and open the app?
@bhardwajrrc6963
@bhardwajrrc6963 5 месяцев назад
How to use this system to navigate to a certain page of app when clicked on a notification?
@sankarsiva5369
@sankarsiva5369 28 дней назад
Hey, how to add custom notification sounds
@gustavojuantorena
@gustavojuantorena 3 года назад
👏👏
@saim4556
@saim4556 5 месяцев назад
app icon is not showing how can i fix that?
@devitosolucoes7534
@devitosolucoes7534 Год назад
can I do it with expo? local and scheduled push notif.
@saim4556
@saim4556 5 месяцев назад
app icon not showing in notification how can i fix that?
@codewithquan1311
@codewithquan1311 Год назад
i have a problems: TypeError: Cannot read property 'getInitialNotification' of null, js engine: hermes , can you help me ??
@Aleweslei
@Aleweslei 3 года назад
Very good, is it possible to trigger local notification in the background with react native?
@mashschool
@mashschool 3 года назад
localNotificationSchedule works in background.
@midhunlalg
@midhunlalg Год назад
hello, are you using expo ?
@owenmiash8904
@owenmiash8904 2 года назад
Am getting this error...default firebaseapp is not initialized in this process react native....kindly assist
@umeshitukade9342
@umeshitukade9342 2 года назад
I am getting the notification but pop up is not showing
@LbzeyroX
@LbzeyroX 2 года назад
npt working when app is killed local notification
@user-kl8vi7uy2i
@user-kl8vi7uy2i 2 года назад
Please show in example how to create group notifications..
@user-ss8wk9fj3i
@user-ss8wk9fj3i Год назад
for background notification , please share video or code
@reactnative7468
@reactnative7468 Год назад
Sir, I have implemented schedule Notifications by following your Code. I want to schedule notification at a specific time every day i.e 04:00 PM every day then what should I do?
@masterofgames999
@masterofgames999 7 месяцев назад
Have you find the solution??
@soulcatcher_pajome
@soulcatcher_pajome Год назад
Followed this tutorial step by step but it's always throwing "Cannot read property 'getInitialNotification' of null"; additionally i can no longer use run-android because it's telling me "> Task :app:processDebugMainManifest FAILED", implying the changes to the AndroidManifest broke something? I'm very lost...
@brandon400
@brandon400 10 месяцев назад
bro what's happend? did you still use this library and works? did u find another library or tutorial?
@soulcatcher_pajome
@soulcatcher_pajome 10 месяцев назад
@@brandon400 good question, i think we ended up never implementing a push notif (it was a uni project) and just made a popup on the app itself
@muzzamilraza3793
@muzzamilraza3793 2 года назад
Why don't you use expo?
@muhammadhamzaqadri1548
@muhammadhamzaqadri1548 2 года назад
Able to have a notification but the local notification schedule is not working, even though I tried your code of notification schedule but unsuccessful
@mashschool
@mashschool 2 года назад
Check the app settings on your device and make sure the permissions for notifications are enabled.
@anonymouswanted7515
@anonymouswanted7515 3 года назад
Does scheduled notifications work if we close the app completely?
@mashschool
@mashschool 3 года назад
Yes, it should work in this case as well.
@shrutirao5073
@shrutirao5073 3 года назад
so how can I Locally push schedule notifications when the app is closed. I can pop notification while it's in the foreground and in the background but when I close the app I cannot get notifications
@mashschool
@mashschool 3 года назад
It should work when the app is closed! For more certainty you can use the allowWhileIdle option and also check the notification permissions for the app on your device.
@shrutirao5073
@shrutirao5073 3 года назад
@@mashschool ok will try that...Thank you for the response
@destinkasigwa9620
@destinkasigwa9620 2 года назад
hello i Tried this many times but doesn't work for me. can you help me please when i put the function in console.log it returns me a undefined. and when i click nothing is happen on my emulator.
@brandon400
@brandon400 10 месяцев назад
bro did you find a solution? or orther tutorial
@tanupriya6971
@tanupriya6971 3 года назад
Not getting notification when I close the app that is when app is running in background what could be the issue
@tanupriya6971
@tanupriya6971 3 года назад
I do get notification in emulator when I close the app but when I install the app using release build i am not getting notification in background but as soon as app goes in foreground I get all the notifications
@mashschool
@mashschool 3 года назад
Check the phone settings for the installed app. Access to send notifications in the background may have been restricted for that app.
@herickraposo1342
@herickraposo1342 3 года назад
I'm using the xiaomi redmi note 9 phone and for some reason I can't display the popup in the foreground, the notifications only go to android notification center but nothing else, the popup doesn't even appear when the app is in the background. Please help me
@mashschool
@mashschool 3 года назад
Make sure that in the device settings, the notification channel for your application is allowed to be displayed.
@herickraposo1342
@herickraposo1342 3 года назад
Thanks.That's right, my channel's floating notification option was disabled. How can I do this automatically without the user having to enter the app settings? That is, automatically?
@mashschool
@mashschool 3 года назад
@@herickraposo1342 This should not happen by default, it's probably because of MIUI on Xiaomi phones.
@saim4556
@saim4556 5 месяцев назад
getting this error : be explicitly specified for element . Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter
@nakidm
@nakidm 3 года назад
This Notifications work and with Expo projects ?
@mashschool
@mashschool 3 года назад
For Expo projects, use the expo-notifications module instead. docs.expo.io/versions/latest/sdk/notifications/
@nakidm
@nakidm 3 года назад
@@mashschool thanks for ur answer i used it and is working fine but when i make build not show me notifications and not show token. Is working only via fcm console. If i want use send notifications with handle function not work..
@aniketpatil4430
@aniketpatil4430 Год назад
this package is not supporting latest version of react native for manifest configuration
@brandon400
@brandon400 10 месяцев назад
bro did you find another good library for this? or other tutoriaL?
@aniketpatil4430
@aniketpatil4430 10 месяцев назад
@@brandon400no bro let me know if you find one.
@kamleshwagh4168
@kamleshwagh4168 2 года назад
Any body can tell me please, How to redirect user to specific screen after clicked on notification?
@islamicinterestofficial
@islamicinterestofficial 2 года назад
Same question. Did you get any sol plz?
@harshjain4256
@harshjain4256 Год назад
Use onnotification call back
@islamicinterestofficial
@islamicinterestofficial Год назад
@@harshjain4256 Thank you. Can you refer any RU-vid link please
@harshjain4256
@harshjain4256 Год назад
@@islamicinterestofficial use Notifee package
@islamicinterestofficial
@islamicinterestofficial Год назад
@@harshjain4256 Thanks I will try. Also do you know how to send notifications using FCM when app is in quit state means not in background just like other apps. FCM is just sending notifications in foreground & background but not in quit state. If you know then please refer some link. I'll be thankful to you
@hrishikeshkedar2574
@hrishikeshkedar2574 2 года назад
what about ios ?
@mashschool
@mashschool 2 года назад
You can watch session #37.
@noniez2980
@noniez2980 2 года назад
i got an error, can anyone help? 🥲
Далее
Programming Is NOT Enough | Add these 7 skills…
13:19
Why Signals Are Better Than React Hooks
16:30
Просмотров 464 тыс.
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
The Story of Next.js
12:13
Просмотров 556 тыс.
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Просмотров 195 тыс.