Ban a user: how to kick him out of the chat room (trigger a client side event)Android - Firebase - Send Users to Chat RoomFirebase realtime-db access with IAM service account on frontendHow to control duplicate data in firebase when value added?Firebase realtime number AndroidMatching users Firestore db modelWhy does Firebase Realtime db work in incognito, etc but not Firebase Cloud MessagingHow to write Firebase Cloud Messaging function to send push notificationFirebase Realtime Database: User ID not displaying within childFirebaseanimatedlist: How can I display username / date only once for subsequent list items (chat)?How to await async ScopedModel data within my app?

Are neural networks prone to catastrophic forgetting?

Why didn't Thanos kill all the Dwarves on Nidavellir?

Did the Vulgar Latin verb "toccare" exist?

Terry Pratchett book with a lawyer dragon and sheep

Graduate student with abysmal English writing skills, how to help

How can I effectively communicate to recruiters that a phone call is not possible?

Matchmaker, Matchmaker, make me a match

Machine learning and operations research projects

Why do players in the past play much longer tournaments than today's top players?

Sending less data than the TCP buffer could take

What is the job of the acoustic cavities inside the main combustion chamber?

Why isn't pressure filtration popular compared to vacuum filtration?

Why are all my yellow 2V/20mA LEDs burning out with 330k Ohm resistor?

Single word for "refusing to move to next activity unless present one is completed."

If a non-friend comes across my Steam Wishlist, how easily can he gift me one of the games?

Storming Area 51

Is Trump personally blocking people on Twitter?

C program to parse source code of another language

How to convert a file with several spaces into a tab-delimited file?

definition of "percentile"

Is "I do not want you to go nowhere" a case of "DOUBLE-NEGATIVES" as claimed by Grammarly?

Is anyone advocating the promotion of homosexuality in UK schools?

Does throwing a penny at a train stop the train?

During copyediting, journal disagrees about spelling of paper's main topic



Ban a user: how to kick him out of the chat room (trigger a client side event)


Android - Firebase - Send Users to Chat RoomFirebase realtime-db access with IAM service account on frontendHow to control duplicate data in firebase when value added?Firebase realtime number AndroidMatching users Firestore db modelWhy does Firebase Realtime db work in incognito, etc but not Firebase Cloud MessagingHow to write Firebase Cloud Messaging function to send push notificationFirebase Realtime Database: User ID not displaying within childFirebaseanimatedlist: How can I display username / date only once for subsequent list items (chat)?How to await async ScopedModel data within my app?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a chat app which is connected to Firebase / Firestore and utilizes Firebaseanimatedlist in conjunction with the realtime database. When an admin of a group bans a user, I save his userid and restrict his access to the chat room. But consider that the user is currently in the chat room when he is banned. So how do I trigger an event client side when the userid is now saved within an array (list) in Firebase to kick him out of the chat room is is currently in?



Is FCM an option?










share|improve this question
























  • FCM is a service with the primary usage of push notifications. If you already have Firebase RTDB, then use it's listeners to check if the user is banned or not.

    – AL.
    Mar 29 at 3:42

















0















I have a chat app which is connected to Firebase / Firestore and utilizes Firebaseanimatedlist in conjunction with the realtime database. When an admin of a group bans a user, I save his userid and restrict his access to the chat room. But consider that the user is currently in the chat room when he is banned. So how do I trigger an event client side when the userid is now saved within an array (list) in Firebase to kick him out of the chat room is is currently in?



Is FCM an option?










share|improve this question
























  • FCM is a service with the primary usage of push notifications. If you already have Firebase RTDB, then use it's listeners to check if the user is banned or not.

    – AL.
    Mar 29 at 3:42













0












0








0








I have a chat app which is connected to Firebase / Firestore and utilizes Firebaseanimatedlist in conjunction with the realtime database. When an admin of a group bans a user, I save his userid and restrict his access to the chat room. But consider that the user is currently in the chat room when he is banned. So how do I trigger an event client side when the userid is now saved within an array (list) in Firebase to kick him out of the chat room is is currently in?



Is FCM an option?










share|improve this question
















I have a chat app which is connected to Firebase / Firestore and utilizes Firebaseanimatedlist in conjunction with the realtime database. When an admin of a group bans a user, I save his userid and restrict his access to the chat room. But consider that the user is currently in the chat room when he is banned. So how do I trigger an event client side when the userid is now saved within an array (list) in Firebase to kick him out of the chat room is is currently in?



Is FCM an option?







firebase-realtime-database flutter flutter-layout flutter-dependencies






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 3:42









AL.

26.1k8 gold badges72 silver badges201 bronze badges




26.1k8 gold badges72 silver badges201 bronze badges










asked Mar 26 at 2:32









user3532201user3532201

861 silver badge9 bronze badges




861 silver badge9 bronze badges












  • FCM is a service with the primary usage of push notifications. If you already have Firebase RTDB, then use it's listeners to check if the user is banned or not.

    – AL.
    Mar 29 at 3:42

















  • FCM is a service with the primary usage of push notifications. If you already have Firebase RTDB, then use it's listeners to check if the user is banned or not.

    – AL.
    Mar 29 at 3:42
















FCM is a service with the primary usage of push notifications. If you already have Firebase RTDB, then use it's listeners to check if the user is banned or not.

– AL.
Mar 29 at 3:42





FCM is a service with the primary usage of push notifications. If you already have Firebase RTDB, then use it's listeners to check if the user is banned or not.

– AL.
Mar 29 at 3:42












1 Answer
1






active

oldest

votes


















0














Presuming that you are using the realtime aspect you can check the database whenever it is updated and if the user exists in the database either hide the content or leave the chat.






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55349036%2fban-a-user-how-to-kick-him-out-of-the-chat-room-trigger-a-client-side-event%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Presuming that you are using the realtime aspect you can check the database whenever it is updated and if the user exists in the database either hide the content or leave the chat.






    share|improve this answer



























      0














      Presuming that you are using the realtime aspect you can check the database whenever it is updated and if the user exists in the database either hide the content or leave the chat.






      share|improve this answer

























        0












        0








        0







        Presuming that you are using the realtime aspect you can check the database whenever it is updated and if the user exists in the database either hide the content or leave the chat.






        share|improve this answer













        Presuming that you are using the realtime aspect you can check the database whenever it is updated and if the user exists in the database either hide the content or leave the chat.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 26 at 19:37









        DevTardDevTard

        2051 silver badge9 bronze badges




        2051 silver badge9 bronze badges


















            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55349036%2fban-a-user-how-to-kick-him-out-of-the-chat-room-trigger-a-client-side-event%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현