How to retrieve Twilio my One to one private chat channel listing in android and IOS - twilio-api

I am creating Chatting platform using Twilio api, I am able to create one to one chat with other user by creating channel. This is how am giving my channel name
POD_Direc_Chat_Myid_OtherUserId
now my Questions is How can I find all channels where this string exist "POD_Direc_Chat_Myid" so that I can get all my private channel in one screen.

Related

how to kick someone from videocall agora with flutter

I'm creating an app for video or voice call with flutter for Android / iOS. And I want to enable someone to kick another from a call. Is there anyone who knows how? any idea?
There are lots of functions in RtcEngine() and I don't know which one would remove another users.
There's a couple of ways that I can think of to do this:
RTM (new name: Signalling)
Using RTM, you could send a message to the user you want to kick, which reacts to logic on the device that then restricts it from rejoining the room. For example, send a plain text message such as "kicked_from:channel-id-here", or a json string if you want to add more complex messages that are decoded by your application:
"{\"action\":\"kick\",\"channel-id\",\"reason\":\"abuse\"}"
This is then saved into a map for example, which then is checked whenever they try to rejoin a channel.
RTM can be found here.
Via Token Server
When kicking someone from your room, you could send a message to your token server with a specific user's ID.
The token server could then revoke that token from joining the channel, resulting in them then leaving the channel. You'd have to then add some logic to either the token server or the client to prevent that user to request a new token and rejoining.

how to create a private channel with stream chat flutter sdk?

I have an ecommerce app created with flutter ( under development),,
so I heard about the Stream_chat_flutter SDK ,, It is a really simple and easy solution to deal with, So my question is I have a user and a seller in my app and I want to make channel conversation between the seller and this particular user so when this user want to send a message to this seller in this time the channel will be created and the seller will be notified and get the message , How can I implement this with your Sdk?
note: that the seller can be contacted by many users .
(I have a authentication system with firebase.)
Capture from the app
Capture from the app
Channels are unique either by specifying a channel ID or a list of members in the create request.
If you want a private one on one channel between one user and a seller, use this:
client.channel("messaging", extraData: {"members": ["user_id", "seller_id"]});
See here for more info.
You can specify as many members as needed to create a group chat.

Using pubnub in flutter, how to initiate a chat?

I have a chat app and I am stuck while initiating the chat. According to pubnub, anytime I message to a new channel "A", that channel is created. My problem is that I want to subscribe to that channel and show the message but I cannot subscribe before the channel is created.
"Creating" PubNub Channels
Channels are not really "created", channels are just string tokens for routing messages. So there is no notion of creating a channel in PubNub (not officially, anyway).
The phrase "create a channel" is more of a concept than a real thing in PubNub. Within your app, creating a channel (a chat room) is a real thing. So you can subscribe to a channel that hasn't yet been "created".
So when your app "creates" a channel (starts a new chat room), your participating clients can subscribe to the channel and messages can be published later.
Or, clients can subscribe after messages are published and use fetchMessages to get any messages that were sent before the client subscribed.

How set video calling using agora in flutter?

I want to set channels dynamically because its very hard to tell other to join this channel.
how i can join a channel problematically?
I believe that you can use firebase dynamic links to do this. Where you send a particular invite link to the person and when that link is clicked it automatically fills the channel name.
You can refer this on how to implement this using firebase dynamic links: https://stackoverflow.com/a/61558367

Sensu, Google Chat Handler for Multi Chat Rooms

Is there any google chat module to send alerts via sensu's google chat handler to more than one room (chat room)?
Ex: As like in Slack we have multi-slack-handler.rb handler is there to trigger alerts on multiple channels via subscriptions which we defined./
Is this same kind of thing Possible with google chat??
In my case, I have created two channels in Sensu (sensu-core open source edition) but I am getting alerts in only one channel after few minutes I am getting alerts on another channel as well but it sends alerts in only one channel at a time. How can we get alerts in all the channels on sensu with google hangout handler?
I think you should check this module: https://github.com/anandtripathi5/google-chat-handler. It is a simple handler which you can add to your logger and configure the level of chat as required. Adding it multiple times with different Gchat room webhooks will push logs to multiple Gchat rooms simultaneously.