Interesting, I noticed that notification only shows up when app is in the background or foreground, . But when app is not running or been closed or killed , notification does not show or appear at all Sir can it be fixed
please next video as soon as possible because my final year project presentation is just in 2 to 3 days in my college.. i have to complete the documentation as well.. plz bro helppp.. everything is done.. just notification is remaining.. i have followed every video of yours and thanks for all.. plz bro
I have a question. I wrote the code same as you did, but after i signed out, FCMtoken field is still there in the collection, its not deleted from firebase storage? Where did we deleted it from? What did i do wrong?
error in android 10 os. and runs well on Android 8 OS. error: force close after application is stopped. error occurred in activitysplash FirebaseUtil.allUserCollectionReference().document(userId).get() .addOnCompleteListener(task -> { if(task.isSuccessful()){.... you can help me?
Sir, in this series after adding the two Intent in the splash Screen, when ever I tried to launch the app it crashed. And it only crashed when the user is logged in.
at android.app.ActivityThread.main(ActivityThread.java:7581) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980) Caused by: java.lang.NullPointerException: Provided document path must not be null. at com.google.firebase.firestore.util.Preconditions.checkNotNull(Preconditions.java:148) at com.google.firebase.firestore.CollectionReference.document(CollectionReference.java:103) at com.example.chatapp.SplashScreen.onCreate(SplashScreen.java:25) at android.app.Activity.performCreate(Activity.java:7805) at android.app.Activity.performCreate(Activity.java:7794) pointing at this line below 25. FirebaseUtil.allUserCollectionReference().document(userId).get()
Got it working after 2 days of trying every solution in SO, found the solution at the end of another tutorial. You know how every app nowadays ask you for permissions for notifications? well that's the issue you have to allow notification permissions for the app in the AppInfo in the emulator, by default they're off. I also allowed notifications from google services in settings. GL
@@dstsol8 i have allowed notification permissions but it stil didn't work. Can you guide me in detail how to handle this problem? And there is another problem that when receiving notifications on real machines and accessing to view messages in ChatActivity is done, if you exit the application and re-enter it, it will fail. I don't know if it's like that in virtual machines? Perhaps the channel owner has not noticed this issue.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vikas.easychat/com.vikas.easychat.SplashActivity}: java.lang.NullPointerException: Provided document path must not be null.
Best coding teacher in the world he explain every code line 😊😊😊😊
It was like an initial guide so I could find what I needed, I'll figure it out later, but it helped me a lot, thank you
Interesting, I noticed that notification only shows up when app is in the background or foreground, . But when app is not running or been closed or killed , notification does not show or appear at all
Sir can it be fixed
please next video as soon as possible because my final year project presentation is just in 2 to 3 days in my college.. i have to complete the documentation as well.. plz bro helppp.. everything is done.. just notification is remaining.. i have followed every video of yours and thanks for all.. plz bro
Hi boss kya ap muje apne project ka code de sakte ho?
Check in the channel the notification (part 20) video is there and also you will love the last part (part 21).
@@yesman3442 when he did upload I had already presented my project.. 😕😔
I have a question. I wrote the code same as you did, but after i signed out, FCMtoken field is still there in the collection, its not deleted from firebase storage? Where did we deleted it from? What did i do wrong?
error in android 10 os. and runs well on Android 8 OS. error: force close after application is stopped. error occurred in activitysplash FirebaseUtil.allUserCollectionReference().document(userId).get()
.addOnCompleteListener(task -> {
if(task.isSuccessful()){.... you can help me?
excelente video
Bro please upload one video of making group
How to make groups and chat together
Please help me,jab mein search karta ho tu app khud hi ban ho jata hai aur profile fragment per click karte hai tu tab bhi app crash kar jata hau
Sir, in this series after adding the two Intent in the splash Screen, when ever I tried to launch the app it crashed. And it only crashed when the user is logged in.
Check the Logcat which line its crashing
at android.app.ActivityThread.main(ActivityThread.java:7581) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980) Caused by: java.lang.NullPointerException: Provided document path must not be null. at com.google.firebase.firestore.util.Preconditions.checkNotNull(Preconditions.java:148) at com.google.firebase.firestore.CollectionReference.document(CollectionReference.java:103) at com.example.chatapp.SplashScreen.onCreate(SplashScreen.java:25) at android.app.Activity.performCreate(Activity.java:7805) at android.app.Activity.performCreate(Activity.java:7794)
pointing at this line below
25. FirebaseUtil.allUserCollectionReference().document(userId).get()
Sir above is what I saw in the logcat
Bro tell me Android studio minimum requirement
Core Java:- classes, inheritance, Oops and you can start
How do you adapt the app to fit all screen sizes?
Are you set any full size screen code from your coding ?
Why can't my virtual machine receive notifications? Can anyone help me with this problem, please?
having the same problem :( so far no luck
Got it working after 2 days of trying every solution in SO, found the solution at the end of another tutorial. You know how every app nowadays ask you for permissions for notifications? well that's the issue you have to allow notification permissions for the app in the AppInfo in the emulator, by default they're off. I also allowed notifications from google services in settings. GL
@@dstsol8 i have allowed notification permissions but it stil didn't work. Can you guide me in detail how to handle this problem?
And there is another problem that when receiving notifications on real machines and accessing to view messages in ChatActivity is done, if you exit the application and re-enter it, it will fail. I don't know if it's like that in virtual machines? Perhaps the channel owner has not noticed this issue.
@@jinx-chantft1582 Try restarting the emulator. That worked for me. Also, make sure you're copying the token correctly
@@dstsol8 thanks
Status feature 🎉
😮😮😮😮
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vikas.easychat/com.vikas.easychat.SplashActivity}: java.lang.NullPointerException: Provided document path must not be null.
Plz reply
maybe check your path in code and in firebase again