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

ความคิดเห็น • 47

  • @kenethadrianariasperez3715
    @kenethadrianariasperez3715 3 ปีที่แล้ว

    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

  • @ПавелКорсун-ы4х
    @ПавелКорсун-ы4х 4 ปีที่แล้ว

    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

  • @IsayaExavery
    @IsayaExavery 4 ปีที่แล้ว

    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

  • @lucashoumga642
    @lucashoumga642 4 ปีที่แล้ว +1

    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 ... 🙏

    • @AtifSayings
      @AtifSayings  4 ปีที่แล้ว +1

      Firebase loads data async, I can add firebase cache feature

    • @lucashoumga642
      @lucashoumga642 4 ปีที่แล้ว

      Thank for all

    • @marumukizu6404
      @marumukizu6404 4 ปีที่แล้ว

      @@AtifSayings pls, realize it

  • @marsadch9397
    @marsadch9397 4 ปีที่แล้ว

    Bro plz make video on in app purchase ( like after making purchase admob ads are disable for a month )

  • @emrahgl
    @emrahgl 4 ปีที่แล้ว

    when unblock user message activity automatically open please give me solution

  • @Nonstop-ef5pb
    @Nonstop-ef5pb 4 ปีที่แล้ว

    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

  • @vaghaniishan379
    @vaghaniishan379 4 ปีที่แล้ว +3

    Sir when unblock user message activity automatically open please give me solution

  • @jalalkd8051
    @jalalkd8051 4 ปีที่แล้ว +2

    when i click like button the post_recyclerview go to top why ???

    • @AtifSayings
      @AtifSayings  4 ปีที่แล้ว

      Refresh changes is the reason

    • @shashenwijesinghe8068
      @shashenwijesinghe8068 4 ปีที่แล้ว

      Cant we stop that?

    • @AtifSayings
      @AtifSayings  4 ปีที่แล้ว

      @@shashenwijesinghe8068 in xml place the recyclerview within NestedScrollView

  • @kenethadrianariasperez3715
    @kenethadrianariasperez3715 3 ปีที่แล้ว +1

    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 :(

    • @AtifSayings
      @AtifSayings  3 ปีที่แล้ว

      What is the issue?

    • @kenethadrianariasperez3715
      @kenethadrianariasperez3715 3 ปีที่แล้ว

      @@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

    • @kenethadrianariasperez3715
      @kenethadrianariasperez3715 3 ปีที่แล้ว

      @@AtifSayings bro I really need help :(

    • @kenethadrianariasperez3715
      @kenethadrianariasperez3715 3 ปีที่แล้ว

      @@AtifSayings bro?

  • @lionsctn5053
    @lionsctn5053 3 ปีที่แล้ว +2

    Hello, I was wondering would be able to make video like this on with swiftui? Thank you for time and love the videos

    • @AtifSayings
      @AtifSayings  3 ปีที่แล้ว +2

      You're welcome
      I'll try

  • @consultmoh7551
    @consultmoh7551 4 ปีที่แล้ว

    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

  • @neilcognito
    @neilcognito 4 ปีที่แล้ว

    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?

  • @TheGoooolz
    @TheGoooolz 3 ปีที่แล้ว +1

    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.

    • @TheGoooolz
      @TheGoooolz 3 ปีที่แล้ว

      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.

    • @AtifSayings
      @AtifSayings  3 ปีที่แล้ว +1

      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

    • @TheGoooolz
      @TheGoooolz 3 ปีที่แล้ว

      @@AtifSayings Thank you, sounds good. I'll try that out.

  • @leolima8585
    @leolima8585 3 ปีที่แล้ว

    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?

  • @-fatih-kaya1060
    @-fatih-kaya1060 4 ปีที่แล้ว +1

    everything works thank u very much

  • @marsadch9397
    @marsadch9397 4 ปีที่แล้ว +1

    V. nice

  • @shashenwijesinghe8068
    @shashenwijesinghe8068 4 ปีที่แล้ว

    this feature is not working with the chats in chatlist.only for user list.

  • @stunnaman8803
    @stunnaman8803 4 ปีที่แล้ว +1

    Thank you very much... Are we still expecting more videos

    • @AtifSayings
      @AtifSayings  4 ปีที่แล้ว

      You're welcome 😊
      I had ended the series on part 30, but due to requests I've started making more videos

    • @lucashoumga642
      @lucashoumga642 4 ปีที่แล้ว +1

      Thanks for all

    • @stunnaman8803
      @stunnaman8803 4 ปีที่แล้ว +1

      Wow.. I really appreciate.. Thank you

    • @dhavemaure1294
      @dhavemaure1294 4 ปีที่แล้ว +1

      @@AtifSayings im very thankful

    • @AtifSayings
      @AtifSayings  4 ปีที่แล้ว

      @@stunnaman8803 you're welcome

  • @welldiscerned7540
    @welldiscerned7540 4 ปีที่แล้ว +1

    Sir please continue to make more videos in this series 😃

    • @consultmoh7551
      @consultmoh7551 4 ปีที่แล้ว

      hello Boss, can you help me.....my fiberbaseMessaging line 53 (if (notificationType.equals("PostNotification")){) keep breaking my app

    • @welldiscerned7540
      @welldiscerned7540 4 ปีที่แล้ว

      consult Moh what does it say, like, does the if statement read always false??

  • @peterukeme9181
    @peterukeme9181 4 ปีที่แล้ว

    Add stories similar to whatsapp

  • @عربيانسان
    @عربيانسان 4 ปีที่แล้ว

    360 ? we are in 2020 :)

    • @AtifSayings
      @AtifSayings  4 ปีที่แล้ว

      I uploaded it in 2160p (4K), At the start, it takes some time to available in full quality.
      Now its available in 4K :)

    • @عربيانسان
      @عربيانسان 4 ปีที่แล้ว +1

      @@AtifSayings thats cool brother :D i love your videos a lot