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;
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
add a comment |
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
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
add a comment |
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
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
firebase-realtime-database flutter flutter-layout flutter-dependencies
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 26 at 19:37
DevTardDevTard
2051 silver badge9 bronze badges
2051 silver badge9 bronze badges
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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