React Native - Local and Schedule Push Notification on both Android and IOS.
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
Пікірлер: 72
thanku soo much, you just save my day 😍😍 may god bless you
Thank you so much this fixed the issue that I was having for the last 3 days
Wow 🤩🤩 , it really helps me alot . Hope to see next video soon
Need to keep making videos bro these are solid
Helped me a lot. Thanks.
Thankyou! it worked on IOS. for people who would be getting error, try using presentLocalNotification instead of addNotificationRequest,
My man! Tks bro.
Appreciate your efforts
Thanks for the tutorial video.
thanks you very much, good job friend.
AMAZING
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?
does we need add Capability remote notification if we just used local notification? I think remote notification use for APNS of Push notification
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
Default FirebaseApp is not initialized made me crazy, you are so greatness
@nwekarmahdi9211
3 жыл бұрын
@Syed Umer Ali 6:00
awesome
in my code only background push is working in ios not the foreground?
Thank you so much....
Great video
Thank you
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
3 жыл бұрын
Could you be more detailed, no notification appears to me
@hardikpalrecha7714
3 жыл бұрын
@@fernando72496 Have you created the channel id and passed it into the function?
@fernando72496
3 жыл бұрын
@@hardikpalrecha7714 No, I was missing that
@wearewithiu6004
3 жыл бұрын
THANK YOU SO MUCH GOOD SIR. You saved me! Can I buy you a virtual coffee?
it wouldn't work on ios simulator, can anyone help?
thanks
why i'm not able to push schedule notification even though i provided the channelid..please help in this.
@hopjr387
3 жыл бұрын
me too
upload regularly man
Will schedule notification work if the app is closed before 5 seconds?
@mateussilvadesantis5205
3 жыл бұрын
I really need to know too !
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
3 жыл бұрын
u can only test on a physical device
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
3 жыл бұрын
me too, do you have solution ?
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
3 жыл бұрын
Because you have free developer account you are not able to push notification capability
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
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
3 жыл бұрын
This might happen if you are on expo. Worked for me in the bare project
I think you not created the notification channel 🙂
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
3 жыл бұрын
i get the same problem did you find any solutions
@diegobonagurio9885
3 жыл бұрын
@@slimshady5864 Yeah, first: I created the channel and after I created de LocalNotification. Follow this: imgur.com/S9QkJX0
@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
3 жыл бұрын
@@slimshady5864 yes bro, do you have discord?
@slimshady5864
3 жыл бұрын
@@diegobonagurio9885 not yet but i would like to explore it
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
3 жыл бұрын
Same thing is happening to me. Can't find the reason for it
@metalonios
3 жыл бұрын
@@Monkinerino put a string in the channelId in configure like "general channel"
@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
3 жыл бұрын
Is there anything else I should do other from PushNotification.configure() and PushNotification.localNotification() ?
@metalonios
3 жыл бұрын
@@Monkinerino sorry i meant on localnotification(). You must set a channel Id
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
source code please
please keep caution when you updating AndroidManifest.xml file use following code we should explicitly define android:exported="true"
thanks it works, but i don't see the token, when console.log("TOKEN:", token); at index.js how to get it ?, thanks
why i getting this error TypeError: this.handler.presentLocalNotification is not a function
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 ?
source code please