I am trying to grow my channel, so if you find this video useful, #subscribe & hitting the #bell :) Thanks for watching and hope you liked and learnt something new!
During hot development process, your calm tone helps to feel that the world is not over and life just goes on in a natural manner. By the way, your videos are great!
Hi Adrian, really like your videos! But what bothers me is you sometime says stuff like: "Copy all this, except this..., cause we don't need that." It might be because you don't know, but would it be possible for you to explain why we aren't copying it all? Would help developers (my self atleast) to understand why we aren't taking it all. Thank you!
I am a bit confused. You have been running this mostly in console, is it possible to integrate it as a component and run it whenever it is being called?
Nice video thank you very much . N I ve a question if you can help. Don't we ve to run some kind of function on some interval to hit the api to see if any new notifications has been recorded?? +Can it be triggered if application is not running?
Hey great video! One question, after accidently not running the PushNotification.configure() it worked completely fine, but once I ran the configure I got the FirebaseApp is not initialized error (no solution found after many hours). Do I have to run the configuration or does everything work without it?
If you're only using local notifications then change your requestPermissions in config PushNotification.configure({ ... requestPermissions: Platform.OS === 'ios' ... } When requestPermissions is set to true it automatically calls Firebase
Hi, thanks for the video but I have a problem: notifications don't work when app is in background but I see in the video that it works for you, can you help?
Hey Adrian ... I got surprised that in development did't seen any video like this, who wants to make understandable to all. It sounds like you are saying that you have solution of all the queries related to that.
Hi Adrian, Thanks for posting this video but I have one question on the scheduled notification. What about if we want a notification to be triggered at, let say 5 PM in the evening. What are the changes required to set the timings of the notification? Any help would be appreciated.
Hey, awesome video really no time wasted. I'm trying to display a notification of something like a call in progress or a VPN connection time, it's like when calling someone with an app and it shows in the notifcation bar the ongoing call duration and action buttons. Does this library help me do that?
Would you mind doing a vid on how to make this work with datetimepicker? Alot of people are asking for this and it could make your channel grow even more.
Hi Adrian, thanks your upload video tutorial. i want to ask you, how do you do when the user clicks notification background and it will be redirected to the page you want to go to?
hi brother, hope u r doing good. I'm new to react native. I'm working on my project but i don't have files for each platform (IOS or android) is this should be done manually or this should be automatically ?
Adrian Twarog some of your fantastic tutorial like how to use Firebase need to copy some file in either IOS OR ANDROID folders , how can I implement such things if I have no folders ?!
Thank You Sir , that helping me out , but can you explain to me , how i can push a notification to another phone, if in this case , i wanna make a build two app, for customer , and driver, if driver touch a button “finish” if will showing a notification in spesific customer that order his service , can you explain to me ? Or create a video about that? Am i have to get his id_customer for do that ?
Adrian Twarog but it’s only for ios right? Hmm ? And also for test ,it’s send a notification by One Signal Console, can you create a video how to push a notification by another phone to another phone with One Signal in Android ? Thank You , it’s just my request, because i have no seen a complex react native push notification in RUclips before
have question from where the folder android come from? Because I have my react native app without it and there is no gradle file , I am using expo, how I can have these files that you have ??
The whole point of expo is that you DONT have native android and ios projects. As you might have guessed by now, to change any native code you need to eject from expo. But then you'll have to manage it yourself and compile your apks locally
I get the error: "default firebaseapp is not initialized in this process" despite me trying to use local push notifications only. I thought local push notificatinos don't need firebase?
Push Notification doesn't need Firebase in anyway, your problem is your importation from Firebase on someone class. I recommend you try do to this: Create a new file just for Firebase, and code this: import * as firebase from "firebase" const config = { apiKey: "your api key", authDomain: "your domain", databaseURL: "your databaseURL", projectId: "your project id", storageBucket: "your bucket", messagingSenderId: "your sender id", appId: "your app id", measurementId: "your measurement id" } export default !firebase.apps.length ? firebase.initializeApp(config) : firebase.app() And import like that: import firebase from '../../firebase' Now you can use without error "default firebaseapp is not initialized in this process"
Hello. I have one question. If i add this push notifications to my react native app, after published id to google play. Will the person who installed this app get also notifications? I mean these notifications work in production? Please answer me
hey adrian can you please make a tutorial on using react-native-background-fetch to do some stuff at interval and show a notification ? It would really help many people
i am confused. what if i want to send push notifications to my users anytime? your explanation is understandable. but this is not the way push notifications are used.
hi, Thanks for your video and i am in trouble right now iam not recieving background notifications ad popup. iam recieving notification on notification list bar. but not as a popup. could you please help me to do it?
HI, i have tried this and its working while in development mode but on release build apk local notification is not workin. Can you please tell me reason ?
For me its not working. You havent created a Channel-ID, but still the code worked, Im wondering how. Im not getting the notification at all, even after creating a channel. Doesnt seem to be as easy as you did.
Hey what you did with using the developer chrome console to do that "window.store." was cool, Where can i find a tutorial dedicated about how exactly that's done? (Calling functionf u wrote in react native from the debug developer window console)
I just tried with your getting error required channelId but your video there is no ChannelId mentioned.Could you please guide me for Local schedule push notifications
i have completed , the installation process but couldn't test the first notification need help in Deciding the place where to configure and add the testpush function.
Have you tried Repeating Notifications ? it keeps calling the notification again and again even if i change the time it will show up, it is a library bug?
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
How to get real time notification, like for example for app something like when get notification from whatsapp flash light blink for once, when notification is from telegram flash blinks for 2 times something like that, how can I detect in my flash light blinker that notification is coming and blinks accordingly, anyone?? Hope you all get an idea what am I trying to do then please help, else let me know if more explanation is required. Thanks.
I cannot see the local notification as popup even popInitialNotification is true. It doesn't work in emulator or any other real device. Also vibration is not working. What could be wrong? (i use hooks could it be related?)
Hey..read this part of the document.. In the notifications options, you must provide a channel id with channelId: "your-channel-id", if the channel doesn't exist the notification might not e triggered. Once the channel is created, the channel cannot be update. Make sure your channelId is different if you change these options. If you have created a channel in another way, it will apply options of the channel.
Can you help me, i followed your walktrough but im getting the following error when triggering a local notification: failed to post notification on channel null
So, what’s the solution for when the app is in a quit state, let’s say? I mean, when the app is closed and the user receives a notification. Something is triggered then?
Tried using this package, but was stuck as i was getting duplicate dependencies error when running the project. The duplicate dependencies were between the android.support and androidx
doesnt work anymore Could not determine the dependencies of task ':react-native-push-notification:compileDebugAidl'. > Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
@@snatjz i did this, and it gives no error at compile time, but my notification is not appearing, i am calling the function in a button's onPress method, i dont know what to do.
Hello man, I have an error message *** (RNpushnotification.getinitialnotification) undefined is not an object *** do you know how to solve it? I have been used expo and autolink
Hey @Somappa Batikeri, I Used "react-native-push-notification" package in android and it works perfect but how to achieve in IOS with the same package.
I am trying to grow my channel, so if you find this video useful, #subscribe & hitting the #bell :) Thanks for watching and hope you liked and learnt something new!
What did you study?
you should also give the complete code Link on your Github
i am not getting schedule notification when the app is in background or closed . Can someone help ?
@@AmitKumar-ex1ot I'm looking at the same. do you have any solution
te amo.
i'm finally got it implement push notification without firebase with your video, thanks so much
During hot development process, your calm tone helps to feel that the world is not over and life just goes on in a natural manner. By the way, your videos are great!
Thanks that’s really nice to hear!
Hahaah true
Finally someone who describes it with voice and details !
WIll this still work if im not using firebase?
THanks so much for the vid btw!
Hi Adrian, really like your videos! But what bothers me is you sometime says stuff like: "Copy all this, except this..., cause we don't need that." It might be because you don't know, but would it be possible for you to explain why we aren't copying it all? Would help developers (my self atleast) to understand why we aren't taking it all.
Thank you!
It’s a bad habit, This is an older video of mine so I’m sure you’ll see my newer videos are much more improved
I am a bit confused. You have been running this mostly in console, is it possible to integrate it as a component and run it whenever it is being called?
Nice video thank you very much . N I ve a question if you can help. Don't we ve to run some kind of function on some interval to hit the api to see if any new notifications has been recorded?? +Can it be triggered if application is not running?
Great Video! Very helpful in an area most people are confused on.
Can we play a sound with push notification, like an incoming call RN?
this tutorial saved my life thanks a lot
Hey how are you? Question: what happened when I double click the push notification? Does it open the app automatically or do I have to do something?
Hey great video! One question, after accidently not running the PushNotification.configure() it worked completely fine, but once I ran the configure I got the FirebaseApp is not initialized error (no solution found after many hours). Do I have to run the configuration or does everything work without it?
Not sure, might need to check doco or github issues for that
same issue here. looking for soluton.
If you're only using local notifications then change your requestPermissions in config
PushNotification.configure({
...
requestPermissions: Platform.OS === 'ios'
...
}
When requestPermissions is set to true it automatically calls Firebase
@@uturn232002 OMG, THANK YOU!!!!
@@uturn232002 thanks a lot, been struggling with this error for hours lol
Great video! Are you planning on doing a video on Firebase Cloud Messaging?
Thanks Adrian it worked to me, You have some video sending push notification from node js?
Not yet but good idea :)
simple and clear thankyou man
Push notifications not coming when create release mode build, any quick fix please?
Just what I was looking for!
Hi, thanks for the video but I have a problem: notifications don't work when app is in background but I see in the video that it works for you, can you help?
might need to check github issues for that
@@AdrianTwarog ok thanks
Hey Adrian ... I got surprised that in development did't seen any video like this, who wants to make understandable to all. It sounds like you are saying that you have solution of all the queries related to that.
Hi Adrian, Thanks for posting this video but I have one question on the scheduled notification. What about if we want a notification to be triggered at, let say 5 PM in the evening. What are the changes required to set the timings of the notification? Any help would be appreciated.
Not sure, might need to look on github for finer details
Have you found any solutions yet? im having the same issse :((
Hey, awesome video really no time wasted. I'm trying to display a notification of something like a call in progress or a VPN connection time, it's like when calling someone with an app and it shows in the notifcation bar the ongoing call duration and action buttons. Does this library help me do that?
very good, I have a question, is it possible to trigger local notification in the background with react native?
Would you mind doing a vid on how to make this work with datetimepicker? Alot of people are asking for this and it could make your channel grow even more.
iLightTV sure can do. Any particular use case examples you want me to go through?
Hi Adrian, thanks your upload video tutorial. i want to ask you, how do you do when the user clicks notification background and it will be redirected to the page you want to go to?
hi brother, hope u r doing good. I'm new to react native. I'm working on my project but i don't have files for each platform (IOS or android) is this should be done manually or this should be automatically ?
It depends, if you are just learning, focus on one for now
Adrian Twarog some of your fantastic tutorial like how to use Firebase need to copy some file in either IOS OR ANDROID folders , how can I implement such things if I have no folders ?!
R u using expo?
Is it possible to use local notifications without classes?
Thank you for your great content..keep up the good work!
Nicely explained 😊😊
Thank You Sir , that helping me out , but can you explain to me , how i can push a notification to another phone, if in this case , i wanna make a build two app, for customer , and driver, if driver touch a button “finish” if will showing a notification in spesific customer that order his service , can you explain to me ? Or create a video about that? Am i have to get his id_customer for do that ?
Kenzo Ymc that would need remote push notifications. I’ve done a video about it with onesignal
Ok sir
Adrian Twarog but it’s only for ios right? Hmm ? And also for test ,it’s send a notification by One Signal Console, can you create a video how to push a notification by another phone to another phone with One Signal in Android ? Thank You , it’s just my request, because i have no seen a complex react native push notification in RUclips before
Nice video, keep it up man!
Witch version of the react native are you using? And the push notification lib version? And the nodejs?
have question from where the folder android come from? Because I have my react native app without it and there is no gradle file , I am using expo, how I can have these files that you have ??
The whole point of expo is that you DONT have native android and ios projects. As you might have guessed by now, to change any native code you need to eject from expo. But then you'll have to manage it yourself and compile your apks locally
I get the error: "default firebaseapp is not initialized in this process" despite me trying to use local push notifications only. I thought local push notificatinos don't need firebase?
Push Notification doesn't need Firebase in anyway, your problem is your importation from Firebase on someone class. I recommend you try do to this: Create a new file just for Firebase, and code this:
import * as firebase from "firebase"
const config = {
apiKey: "your api key",
authDomain: "your domain",
databaseURL: "your databaseURL",
projectId: "your project id",
storageBucket: "your bucket",
messagingSenderId: "your sender id",
appId: "your app id",
measurementId: "your measurement id"
}
export default !firebase.apps.length ? firebase.initializeApp(config) : firebase.app()
And import like that:
import firebase from '../../firebase'
Now you can use without error "default firebaseapp is not initialized in this process"
@@felipepereira1967 Does Local Schedule Notifications need firebase?
Sorry I just don't want to download firebase if it's not needed
@@GEhehloopf Firebase is not required.
@Jake I am also creating same app for local notification only. I am facing same error. Did you solved your issue? Please help me.
@@girishchauhan8009 set requestPermissions: false in PushNotification.configure({....})
Hello. I have one question. If i add this push notifications to my react native app, after published id to google play. Will the person who installed this app get also notifications? I mean these notifications work in production? Please answer me
Yep
It is very helpful video. Thank you so much.
Great to hear :)
hey adrian can you please make a tutorial on using react-native-background-fetch to do some stuff at interval and show a notification ? It would really help many people
@CreativeJE have you found a solution?
@@AungMyintThein yeah it worked out
i am confused. what if i want to send push notifications to my users anytime? your explanation is understandable. but this is not the way push notifications are used.
How to update the notification message in already launched notification
hi,
Thanks for your video and i am in trouble right now iam not recieving background notifications ad popup. iam recieving notification on notification list bar. but not as a popup. could you please help me to do it?
did you find any solution?
Is it possible to send notification from server ??
thanks, nice tutorial
i used button to call a testPush function , but not able to trigger a notification can you help me with that
HI, i have tried this and its working while in development mode but on release build apk local notification is not workin. Can you please tell me reason ?
I follow your step but I got firebase not initalized.
how did you solve it am facing same issue
Can you add an audio as well when there is notification?
how can we navigate to specific screen on pressing notification?? need help
Update this tutorial. Notifications not working with latest version
Thanks bro Very+++ Much. May God Bless u
thank you for explanation
what os android do u use ? is that os.9 or 8.1 ?
For me its not working. You havent created a Channel-ID, but still the code worked, Im wondering how. Im not getting the notification at all, even after creating a channel. Doesnt seem to be as easy as you did.
Can you please make a video showing how to use devTools?
Hey what you did with using the developer chrome console to do that "window.store." was cool, Where can i find a tutorial dedicated about how exactly that's done?
(Calling functionf u wrote in react native from the debug developer window console)
Sure, but it’s simple enough. When you define your store, also set it against window.store. For example, window.store = store = new AppStore()
Sorry, I didn't understand it? How do you open the store.js in the console?
I just tried with your getting error required channelId but your video there is no ChannelId mentioned.Could you please guide me for Local schedule push notifications
i have completed , the installation process but couldn't test the first notification
need help in Deciding the place where to configure and add the testpush function.
will this work even if the app is killed?
How to achieve an inline reply of notification received in both iOS and Android platforms?
if it's in local it need firebase too ?
Have you tried Repeating Notifications
? it keeps calling the notification again and again even if i change the time it will show up, it is a library bug?
There are ways to set-up repeating notifications and canceling them. Is that what you mean?
Can you show, how to get local notification working with expo react native app?
How to implement allow notifications popup using react-native?
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
is it possible to use react native push notification with php/mysql without using firebase and oneSignal
Why my project doesn’t have an android folder ? Because I’m using expo. So this is not for me.
How to get real time notification, like for example for app something like when get notification from whatsapp flash light blink for once, when notification is from telegram flash blinks for 2 times something like that, how can I detect in my flash light blinker that notification is coming and blinks accordingly, anyone??
Hope you all get an idea what am I trying to do then please help, else let me know if more explanation is required.
Thanks.
I cannot see the local notification as popup even popInitialNotification is true. It doesn't work in emulator or any other real device. Also vibration is not working. What could be wrong? (i use hooks could it be related?)
hello, can u explain what the store.js ?
like app.js when u first install react ?
thank u
hafizh holmes sure it’s in my earlier videos on react native and it’s the store I use with Mobx
@@AdrianTwarog please can you link the video? i searched the playlist but i can't find it
Getting warning message for chanelId. please help.
Hello Sir , local notification is not working if i close the app. Please help me.
Can u implement App open Ads in react native.
Hi @Adrian Twarog.
I have followed the prompts but the notification does not appear.
Hey..read this part of the document.. In the notifications options, you must provide a channel id with channelId: "your-channel-id", if the channel doesn't exist the notification might not e triggered. Once the channel is created, the channel cannot be update. Make sure your channelId is different if you change these options. If you have created a channel in another way, it will apply options of the channel.
i am not getting schedule notification when the app is in background or closed . Can someone help ?
Can you help me, i followed your walktrough but im getting the following error when triggering a local notification:
failed to post notification on channel null
how to add link / deeplink at bottom message notification, example go to playstore for update. thanks
Can you help me explain why onNotification cannot trigger?
Up
The app has to be running for onNotification to trigger. If its in the background, iOS or Android may have it in a paused state.
* See reply for *Cong
@@AdrianTwarog even app is running, onNotification cannot trigger, I have changed my solution to push notification from sever through FCM.
So, what’s the solution for when the app is in a quit state, let’s say? I mean, when the app is closed and the user receives a notification. Something is triggered then?
Thank you very much. You save my time.
That’s great!
Hi, whenever I start the app, it crashes with "default firebaseapp is not initialized in this process" error. How to fix it?
Wow I faced the same and I solved it
It's like in gradle we need to add few lines app level gradle and project level . Having lunch will let you know what I did .
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 21
targetSdkVersion = 28
compileSdkVersion = 28
dbFlowVersion = '4.2.4'
// buildToolsVersion = '28.0.0'
supportLibVersion = '28.0.0'
kotlinVersion = '1.3.50'
repositoryUrl = "file:${System.env.HOME}/.m2/repository/"
googlePlayServicesVersion = "16.1.0" // default: "+"
firebaseVersion = "17.3.4" // default: "+"
googlePlayServicesIidVersion = "16.0.1"
}
repositories {
google()
jcenter()
maven { url 'dl.bintray.com/android/android-tools/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
// classpath 'com.google.gms:google-services:4.2.0'
//classpath:'com.google.gms:google-services:4.3.3'
// classpath 'com.google.gms:google-services:+'
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.gms:google-services:+'
classpath 'de.undercouch:gradle-download-task:3.4.3'
// github.com/awslabs/aws-device-farm-gradle-plugin/releases
classpath 'com.amazonaws:aws-devicefarm-gradle-plugin:1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
build script that's project level Gradle
in app level Gradle . at the end add this // This has to be down here for some reason
apply plugin: 'com.google.gms.google-services'
Android local schedule push notifications not working, if we kill an app. In ios it's working fine.
Your Voice is too much similar to * Academind
* youtube channal :-D
No
Tried using this package, but was stuck as i was getting duplicate dependencies error when running the project.
The duplicate dependencies were between the android.support and androidx
If someone is facing the same issue and has any way out of it or a latest community package please help
do you will make this project available on github?
I’ll try!
hi, where to use that window.store.testPush command please help
Just in console, you can save your store against window.store variable to assess it
doesnt work anymore Could not determine the dependencies of task ':react-native-push-notification:compileDebugAidl'.
> Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
sir, i can't find store.js . Where is this file ?
Harshit Kumar we created this in the earlier video on the react native series about setting up the app and stores.
I am getting an error of firebase is not initialized, but i dont want to use firebase
delete ' requestPermissions: true,' this line and add ' requestPermissions: Platform.OS === 'ios', ' in the PushNotification.configure({
@@snatjz i did this, and it gives no error at compile time, but my notification is not appearing, i am calling the function in a button's onPress method, i dont know what to do.
Hello man, I have an error message *** (RNpushnotification.getinitialnotification) undefined is not an object *** do you know how to solve it? I have been used expo and autolink
Check github!
did it work ?
could update this video using FCM to send push notification :)
quick and easy but it would be great if you used same "react-native-push-notification" package for IOS too.
I know! Next time!
Hey @Somappa Batikeri, I Used "react-native-push-notification" package in android and it works perfect but how to achieve in IOS with the same package.
I could not find the store.jsx 4:08
how to create store and devtools like that?... i'm so tired
please put video for push notification with actions both Android and iOS .
Getting error default firebase app is not initialized in the process com.appname
delete ' requestPermissions: true,' this line and add ' requestPermissions: Platform.OS === 'ios', ' in the PushNotification.configure({
can you do a video for react native redux. it's so confusing to me
vihaga yohan94 yeah sure can do
this was not helpful, you did not show how to set up a notification in the application
not gonna lie, dissapointed in this tutorial becasue it didnt also cover the ios side. good job though
Ill try to cover both in the future :)
Thank you for this video.. But the versions are older and this is not helping :(
Ah have you checked github issues?
@@AdrianTwarog I went through the documentation carefully and was able to resolve my issue.
please make a video from begin to the end. just dont jump between an available app
Why do you add an iOS notification in the banner instead of an android? Click bait!
Why is so fcnk compicated? Omg