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

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript