Тёмный

React Native - Local and Schedule Push Notification on both Android and IOS. 

Suman Bhattarai
Подписаться 189
Просмотров 35 тыс.
50% 1

Implementation of Local push notification in both Android and Ios in React Native. This tutorial is made for beginners since it is built from scratch.
Follow me on Instagram :
/ sbofficial
Hire me on Upwork:
www.upwork.com/freelancers/~0...
LIKE, SHARE, AND SUBSCRIBE
Music Credits :
Ice Flow by Kevin MacLeod: incompetech.com
Creative Commons - Attribution 4.0 International - CC BY 4.0
Free Download / Stream: bit.ly/ice-flow
Music promoted by Audio Library • Ice Flow - Kevin MacLe...
#ReactNative #ReactNativePushNotification #PushNotificationIos #PushNotificationAndroid #LocalNotification #ScheduleNotification

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

 

4 сен 2020

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 72   
@IntellectDeveloper
@IntellectDeveloper 3 года назад
thanku soo much, you just save my day 😍😍 may god bless you
@rayanabid1303
@rayanabid1303 3 года назад
Thank you so much this fixed the issue that I was having for the last 3 days
@ShivamVerma-gq2sm
@ShivamVerma-gq2sm 2 года назад
Thankyou! it worked on IOS. for people who would be getting error, try using presentLocalNotification instead of addNotificationRequest,
@sisirmalla2252
@sisirmalla2252 3 года назад
Wow 🤩🤩 , it really helps me alot . Hope to see next video soon
@toprises2903
@toprises2903 3 года назад
Helped me a lot. Thanks.
@tonny.amaral
@tonny.amaral 3 года назад
My man! Tks bro.
@StephenRayner
@StephenRayner 3 года назад
Need to keep making videos bro these are solid
@carlo79627
@carlo79627 2 года назад
thanks you very much, good job friend.
@emind4651
@emind4651 6 месяцев назад
Thanks for the tutorial video.
@arwaahmed5066
@arwaahmed5066 2 года назад
AMAZING
@cloudswiftsolutions1330
@cloudswiftsolutions1330 3 года назад
Appreciate your efforts
@xutodra
@xutodra 3 года назад
does we need add Capability remote notification if we just used local notification? I think remote notification use for APNS of Push notification
@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?
@WesleyGomes-re7zf
@WesleyGomes-re7zf 9 месяцев назад
Thank you so much....
@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
@sametpalitci1273
@sametpalitci1273 3 года назад
Thank you
@emmanuelsauceda3278
@emmanuelsauceda3278 3 года назад
awesome
@nwekarmahdi9211
@nwekarmahdi9211 3 года назад
Default FirebaseApp is not initialized made me crazy, you are so greatness
@nwekarmahdi9211
@nwekarmahdi9211 3 года назад
@Syed Umer Ali 6:00
@mohitgairola6602
@mohitgairola6602 Год назад
in my code only background push is working in ios not the foreground?
@sandeshshrestha6494
@sandeshshrestha6494 3 года назад
Great video
@parthasarathimondal6141
@parthasarathimondal6141 2 года назад
thanks
@hardikpalrecha7714
@hardikpalrecha7714 3 года назад
Brother it worked after the you provide the channel id ( if anybody don't know how to create then use PushNotification.createChannel like in componentDidMount and passed it in arguments)..🖖
@fernando72496
@fernando72496 3 года назад
Could you be more detailed, no notification appears to me
@hardikpalrecha7714
@hardikpalrecha7714 3 года назад
@@fernando72496 Have you created the channel id and passed it into the function?
@fernando72496
@fernando72496 3 года назад
@@hardikpalrecha7714 No, I was missing that
@wearewithiu6004
@wearewithiu6004 3 года назад
THANK YOU SO MUCH GOOD SIR. You saved me! Can I buy you a virtual coffee?
@hardikpalrecha7714
@hardikpalrecha7714 3 года назад
why i'm not able to push schedule notification even though i provided the channelid..please help in this.
@hopjr387
@hopjr387 3 года назад
me too
@kaunghtethein3322
@kaunghtethein3322 2 года назад
it wouldn't work on ios simulator, can anyone help?
@lazycatngoc
@lazycatngoc 3 года назад
Thank you. I folow your tutorial and get notification in IOS. But I have red error on bottom "remote notifications are not supported in the..." In server, full error like this. ERROR remote notifications are not supported in the simulator {"code": 3010, "details": {"NSLocalizedDescription": "remote notifications are not supported in the simulator"}, "message": "remote notifications are not supported in the simulator"} Can you tell me what wrong in there
@gabrr
@gabrr 3 года назад
u can only test on a physical device
@pranavkumar1818
@pranavkumar1818 3 года назад
Will schedule notification work if the app is closed before 5 seconds?
@mateussilvadesantis5205
@mateussilvadesantis5205 3 года назад
I really need to know too !
@arupde6320
@arupde6320 2 года назад
upload regularly man
@diegobonagurio9885
@diegobonagurio9885 3 года назад
I followed the all steps, but show this error: Developer warning for package "com.testapp" Failed to post notification on channel "fcm_fallback_notification_channel" Did anyone have the same problem?
@slimshady5864
@slimshady5864 3 года назад
i get the same problem did you find any solutions
@diegobonagurio9885
@diegobonagurio9885 3 года назад
@@slimshady5864 Yeah, first: I created the channel and after I created de LocalNotification. Follow this: imgur.com/S9QkJX0
@slimshady5864
@slimshady5864 3 года назад
@@diegobonagurio9885 thankyou brother. it worked well. I there any way I can connect with you? Just for some guidance if I get stuck?
@diegobonagurio9885
@diegobonagurio9885 3 года назад
@@slimshady5864 yes bro, do you have discord?
@slimshady5864
@slimshady5864 3 года назад
@@diegobonagurio9885 not yet but i would like to explore it
@cherishmashree7302
@cherishmashree7302 3 года назад
Hi... Thanks a lot. It was such a detailed implementation. But in my xcode, I was able to add Background Modes capability, but I could not find "Push Notifications" capability. Can you please help me with this? And Thanks once again. Keep rocking. 👏👏
@3rddigital483
@3rddigital483 3 года назад
Because you have free developer account you are not able to push notification capability
@chandhannarayanareddy7613
@chandhannarayanareddy7613 3 года назад
I followed all the steps I still have no notifications and no error as well no logging of onNotification as well and I have tried with both simulator and mobile
@maryfranklin5615
@maryfranklin5615 3 года назад
me too, do you have solution ?
@ramicesmoises5170
@ramicesmoises5170 3 года назад
I followed the tutorial and find this error: "null is not an object (evaluating 'rnpushnotification.getinitialnotification')". I search in the entire internet and dont find a solution. Did you know what's causing it?
@ramicesmoises5170
@ramicesmoises5170 3 года назад
​ @WISERDIVISOR First i added the react native push notification library. Then i run expo eject, to create the android/ios folder. Finally, i run this magic command: "npx react-native link react-native-push-notification" and then everything worked (This command link the libraryr automatically to the code, so you dot need to do it mannually)
@bhavyagosai6712
@bhavyagosai6712 3 года назад
This might happen if you are on expo. Worked for me in the bare project
@metalonios
@metalonios 3 года назад
Hello. I followed all the steps but no push notification is getting fired. I dont have idea what happens and why it doesnt work
@Monkinerino
@Monkinerino 3 года назад
Same thing is happening to me. Can't find the reason for it
@metalonios
@metalonios 3 года назад
@@Monkinerino put a string in the channelId in configure like "general channel"
@Monkinerino
@Monkinerino 3 года назад
@@metalonios You mean on the PushNotification.localNotification() method? because on configure I believe there isn't such a field. If so, I have tried and it did not work
@Monkinerino
@Monkinerino 3 года назад
Is there anything else I should do other from PushNotification.configure() and PushNotification.localNotification() ?
@metalonios
@metalonios 3 года назад
@@Monkinerino sorry i meant on localnotification(). You must set a channel Id
@deepanshu.770
@deepanshu.770 2 года назад
I think you not created the notification channel 🙂
@chandhannarayanareddy7613
@chandhannarayanareddy7613 3 года назад
Who didn't got error as well as notifications after following step to step please add channel notifications Just go to the documentation github.com/zo0r/react-native-push-notification#channel-management-android **NOTE: Without channel, notifications don't work Just they updated this 25 days back So try to learn creating channel and it'll work
@Ashishume
@Ashishume 3 года назад
source code please
@ivanhsiaolung2178
@ivanhsiaolung2178 3 года назад
thanks it works, but i don't see the token, when console.log("TOKEN:", token); at index.js how to get it ?, thanks
@jeyaseelan2009
@jeyaseelan2009 Год назад
please keep caution when you updating AndroidManifest.xml file use following code we should explicitly define android:exported="true"
@saxenavedant61
@saxenavedant61 Год назад
hi i am having this issue D/skia: --- Failed to create image decoder with message 'unimplemented' 2022-10-10 18:05:32.784 14399-14471/com.alloblue D/skia: --- Failed to create image decoder with message 'unimplemented' What to do ?
@ganeshhurgule1140
@ganeshhurgule1140 3 года назад
why i getting this error TypeError: this.handler.presentLocalNotification is not a function
@quynguyenphu541
@quynguyenphu541 3 года назад
source code please
Далее
Push Notification with Firebase - From Zero to Hero 8
43:58
React Native Push Notifications for iOS and Android
19:27
ПОЛЕЗНЫЕ ЛАЙФХАКИ В PLANTS VS ZOMBIES!
00:45
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
Просмотров 2,2 млн
Expo in 100 Seconds
2:39
Просмотров 547 тыс.
React Native Local Push Notifications Tutorial
10:14
Просмотров 126 тыс.
ПОЛЕЗНЫЕ ЛАЙФХАКИ В PLANTS VS ZOMBIES!
00:45