Firebase Social Media App - 31 Block Unblock User
ฝัง
- เผยแพร่เมื่อ 29 ก.ย. 2024
- In this part(31) we will do the following
01- Block User
02- Unblock User
03- The Blocked user will not be able to send messages to those who have blocked that user.
Buy Me a Coffee:
paypal.me/atif...
Purchase Code:
www.technifyso...
Playlist: • Firebase Social Media ...
Feel free to comment in case of any problem
Chanel:
/ mohammadatif1
Websites:
technifysoft.com/
devofandroid.b...
Apps/Games on PlayStore:
play.google.co...
If u like this video, Like, Comment, Subscribe to support us...
#Android_Firebase #Social_Media_App #Atif_Pervaiz
android firebase app
android social media app
android social media app using firebase
android blog app
android blog app using firebase
android firebase user registration
android firebase block user
android firebase chat app
android firebase crud
android firebase profile
android firebase users
android firebase edit data
android firebase authentication
android firebase realtime database
android firebase storage
android firebase fcm
android firebase cloud messaging
user, after searching for it (only that user appears) the app exits and it tells me that there is an error like this:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.get (ArrayList.java:437)
at com.keneth.android.androidnatural.adapter.AdapterUsers$5.onDataChange(AdapterUsers.java:269)
the location of the error is as follows:
AdapterUsers.java:269 = userList.get (position) .setBlocked (true);
this is found in the "checkIsBlocked" function.
please help me
Hi Atif, I am watching your video tutorials and I have one problem. I am writing a Firebase Social Media App and in lesson 8 I got an error. I double-checked the video and my code three times, I write everything according to your project. The error occurs in RecyclerView, namely E / RecyclerView: No adapter attached; skipping layout
Please help me solve this problem
Can add video for the list of only people you chat with. List of only people you send or receive message and not all people
please I have a problem with the post zone and the chatlist zone, when I already have a lot of post where discussion it takes a lot of time to load and the application is slow during the loading can you please do a tutorial on how to load data dynamically from 10 to 10 please please please ... 🙏
Firebase loads data async, I can add firebase cache feature
Thank for all
@@AtifSayings pls, realize it
Bro plz make video on in app purchase ( like after making purchase admob ads are disable for a month )
when unblock user message activity automatically open please give me solution
thanks on your tutorial sir i can;t fix this problem when i block user 1 then the bottom user getting notified as block "ic_blocked_red" not the user 1? but in firebase user 1 successfully block only
android:src="@drawable/ic_unblocked_green" is not changing
Sir when unblock user message activity automatically open please give me solution
when i click like button the post_recyclerview go to top why ???
Refresh changes is the reason
Cant we stop that?
@@shashenwijesinghe8068 in xml place the recyclerview within NestedScrollView
HELP ME BRO please, I've been there for several days and I can't understand what the problem is, if everything is the same as you have it :(
What is the issue?
@@AtifSayings In min 15 of your video the line of code in which I have the error is made.
It turns out that everything works fine when I block and unblock a user, BUT when I search for a specific user and the recyclearView only shows that user, I propose to BLOCK IT and that is where I get this error:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.keneth.android.appandroide, PID: 13069
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.get(ArrayList.java:437)
at com.keneth.android.appandroide.adapter.AdapterUsers$4.onDataChange(AdapterUsers.java:240)
at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75)
at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63)
at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
and I do not understand what the error is if everything is the same bro, please help me
@@AtifSayings bro I really need help :(
@@AtifSayings bro?
Hello, I was wondering would be able to make video like this on with swiftui? Thank you for time and love the videos
You're welcome
I'll try
Hello Atif , thanks man for everything i have learnt alot but i have an issue and need urgent attention please
1. in the dashbord, if a user is installing the app for the first time it breaks and when i check logcat it was this line of code that was causing it ref.child(mUID).setValue(mToken);
2. after implementing the video 30, thats for post notification, i noticed that any time i switch on the post notification and add a post, the app crash and when i check the logcat it was this line of code in FirebaseMessaging (if (notificationType.equals("PostNotification")){) in line 53 please help
I am getting a weird error, *java.lang.NumberFormatException: Invaild long: "null"* in the adapterChat for the timeStamp. No matter what i do or try the error seems to appear. I can't Post images inside chat, it will upload and send, but once i try to reopen chat, it crashes with the error.
pls, anyone aware or having a similar issue?
Hi, excellent tutorial! I was wondering, is there a good way to show only select users in the main posts section instead of all registered users. Maybe if you click on the user in the user list there is an option to have their posts show up or not show up? Thanks.
I guess maybe users could just be removed from you seeing them all together and this would work the same way instead of blocking them.
If you dont want to see blocked users you can add check while showing users, show only that user that were not blocked.
For posts you may add follow/unfollow feature to ahow posts of only those users who you have followed
@@AtifSayings Thank you, sounds good. I'll try that out.
Olá! Falo português. Fiquei confuso. Video longo de 30 minutos. Existirá alguma possibilidade de video curto e separado para demonstrar como seria um bloqueio de uso do app, na intenção de exibir um FrameLayout com título usuário bloqueado pelo administrador? Tipo que força o usuário logado a si deslogar no momento e entre numa atividade de advertência.
Conseguiria também demonstrar um tipo de countdowTimer para suspensao do usuário por certas horas ou dias de acordo com o child de consulta do usuário ao firebase?
everything works thank u very much
You’re welcome
V. nice
this feature is not working with the chats in chatlist.only for user list.
Thank you very much... Are we still expecting more videos
You're welcome 😊
I had ended the series on part 30, but due to requests I've started making more videos
Thanks for all
Wow.. I really appreciate.. Thank you
@@AtifSayings im very thankful
@@stunnaman8803 you're welcome
Sir please continue to make more videos in this series 😃
hello Boss, can you help me.....my fiberbaseMessaging line 53 (if (notificationType.equals("PostNotification")){) keep breaking my app
consult Moh what does it say, like, does the if statement read always false??
Add stories similar to whatsapp
360 ? we are in 2020 :)
I uploaded it in 2160p (4K), At the start, it takes some time to available in full quality.
Now its available in 4K :)
@@AtifSayings thats cool brother :D i love your videos a lot